Clean up constants (#46948)
* Clean up constants * clean up humidifier constants * fix tests * fix prometheus tests Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
This commit is contained in:
parent
dc880118a4
commit
ab53b49d3f
31 changed files with 69 additions and 68 deletions
|
@ -473,4 +473,4 @@ async def test_execute_request(hass_fixture, assistant_client, auth_header):
|
|||
assert dehumidifier.attributes.get(humidifier.ATTR_HUMIDITY) == 45
|
||||
|
||||
hygrostat = hass_fixture.states.get("humidifier.hygrostat")
|
||||
assert hygrostat.attributes.get(humidifier.ATTR_MODE) == "eco"
|
||||
assert hygrostat.attributes.get(const.ATTR_MODE) == "eco"
|
||||
|
|
|
@ -31,6 +31,7 @@ from homeassistant.const import (
|
|||
ATTR_ASSUMED_STATE,
|
||||
ATTR_DEVICE_CLASS,
|
||||
ATTR_ENTITY_ID,
|
||||
ATTR_MODE,
|
||||
ATTR_SUPPORTED_FEATURES,
|
||||
ATTR_TEMPERATURE,
|
||||
SERVICE_TURN_OFF,
|
||||
|
@ -1778,7 +1779,7 @@ async def test_modes_humidifier(hass):
|
|||
humidifier.ATTR_MIN_HUMIDITY: 30,
|
||||
humidifier.ATTR_MAX_HUMIDITY: 99,
|
||||
humidifier.ATTR_HUMIDITY: 50,
|
||||
humidifier.ATTR_MODE: humidifier.MODE_AUTO,
|
||||
ATTR_MODE: humidifier.MODE_AUTO,
|
||||
},
|
||||
),
|
||||
BASIC_CONFIG,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue