Update Homekit climate.py to remap current mode (#28625)

* Update Homekit climate.py to remap current mode

This update changes the mapping of Homekit's Current Mode Heating/Cooling State  to show the HASS Hvac_action attribute as "idle" instead of "off" when the returned value is 0.

* Update climate.py

removed imported constant no longer being used  (CURRENT_HVAC_OFF)

* corrected update to climate.py

trying again to remove unused constant.

* Update test_climate.py

* removed "change" comment

The added comment describing the change was not needed and should not be included, as it will already be described via "git annotate"  (per @jc2k)
This commit is contained in:
GaryOkie authored and Martin Hjelmare committed 2019-11-12 00:35:09 +01:00
1 parent decab3e15b
commit a9a1c2b91d
2 files changed
+3 -3

No files matched your search

@@ -213,7 +213,7 @@ async def test_hvac_mode_vs_hvac_action(hass, utcnow):
state = await helper.poll_and_get_state()
assert state.state == "heat"
assert state.attributes["hvac_action"] == "off"
assert state.attributes["hvac_action"] == "idle"
# Simulate that current temperature is below target temp
# Heating might be on and hvac_action currently 'heat'