mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
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:
committed by
Martin Hjelmare
parent
decab3e15b
commit
a9a1c2b91d
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user