Skip to content

Commit 8a926ad

Browse files
authored
Bump PySwitchbot to 0.73.0 (home-assistant#156266)
1 parent 31f7699 commit 8a926ad

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

homeassistant/components/switchbot/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141
"iot_class": "local_push",
4242
"loggers": ["switchbot"],
4343
"quality_scale": "gold",
44-
"requirements": ["PySwitchbot==0.72.1"]
44+
"requirements": ["PySwitchbot==0.73.0"]
4545
}

requirements_all.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements_test_all.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/components/switchbot/test_sensor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
CONF_NAME,
1919
CONF_PASSWORD,
2020
CONF_SENSOR_TYPE,
21+
STATE_ON,
2122
)
2223
from homeassistant.core import HomeAssistant
2324
from homeassistant.setup import async_setup_component
@@ -782,12 +783,12 @@ async def test_climate_panel_sensor(hass: HomeAssistant) -> None:
782783

783784
light_sensor = hass.states.get("binary_sensor.test_name_light")
784785
light_sensor_attrs = light_sensor.attributes
785-
assert light_sensor.state == "off"
786+
assert light_sensor.state == STATE_ON
786787
assert light_sensor_attrs[ATTR_FRIENDLY_NAME] == "test-name Light"
787788

788789
motion_sensor = hass.states.get("binary_sensor.test_name_motion")
789790
motion_sensor_attrs = motion_sensor.attributes
790-
assert motion_sensor.state == "on"
791+
assert motion_sensor.state == STATE_ON
791792
assert motion_sensor_attrs[ATTR_FRIENDLY_NAME] == "test-name Motion"
792793

793794
assert await hass.config_entries.async_unload(entry.entry_id)

0 commit comments

Comments
 (0)