Skip to content

Commit

Permalink
Merge pull request #19 from rsnodgrass/main
Browse files Browse the repository at this point in the history
fixed UI sort order str/int comparisons
added note about freeze protection icon
  • Loading branch information
jlvaillant committed Jun 5, 2021
2 parents 068fe3d + dc1e827 commit 1085ebc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions custom_components/intellicenter/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

_LOGGER = logging.getLogger(__name__)

# FIXME: for freeze swtch use icon mdi:snowflake

# -------------------------------------------------------------------------------------


Expand Down
2 changes: 1 addition & 1 deletion custom_components/intellicenter/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def async_setup_entry(
# and sort them by their UI order (if they don't have one, use 100 and place them last)
heaters = sorted(
controller.model.getByType(HEATER_TYPE),
key=lambda h: h[LISTORD_ATTR] if h[LISTORD_ATTR] else 100,
key=lambda h: int(h[LISTORD_ATTR]) if h[LISTORD_ATTR] else 100,
)

bodies = controller.model.getByType(BODY_TYPE)
Expand Down

0 comments on commit 1085ebc

Please sign in to comment.