mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 00:07:10 +00:00
Remove stale debug prints (#76865)
This commit is contained in:
parent
45b253f65f
commit
00c0ea8869
@ -839,7 +839,6 @@ class ProtectMediaSource(MediaSource):
|
|||||||
"""Return all media source for all UniFi Protect NVRs."""
|
"""Return all media source for all UniFi Protect NVRs."""
|
||||||
|
|
||||||
consoles: list[BrowseMediaSource] = []
|
consoles: list[BrowseMediaSource] = []
|
||||||
print(len(self.data_sources.values()))
|
|
||||||
for data_source in self.data_sources.values():
|
for data_source in self.data_sources.values():
|
||||||
if not data_source.api.bootstrap.has_media:
|
if not data_source.api.bootstrap.has_media:
|
||||||
continue
|
continue
|
||||||
|
@ -18,7 +18,6 @@ async def test_sensors(hass, config_entry, aioclient_mock_fixture):
|
|||||||
assert len(hass.data[FLO_DOMAIN][config_entry.entry_id]["devices"]) == 2
|
assert len(hass.data[FLO_DOMAIN][config_entry.entry_id]["devices"]) == 2
|
||||||
|
|
||||||
# we should have 5 entities for the valve
|
# we should have 5 entities for the valve
|
||||||
print(hass.states)
|
|
||||||
assert (
|
assert (
|
||||||
hass.states.get("sensor.smart_water_shutoff_current_system_mode").state
|
hass.states.get("sensor.smart_water_shutoff_current_system_mode").state
|
||||||
== "home"
|
== "home"
|
||||||
@ -59,7 +58,6 @@ async def test_sensors(hass, config_entry, aioclient_mock_fixture):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# and 3 entities for the detector
|
# and 3 entities for the detector
|
||||||
print(hass.states)
|
|
||||||
assert hass.states.get("sensor.kitchen_sink_temperature").state == "16"
|
assert hass.states.get("sensor.kitchen_sink_temperature").state == "16"
|
||||||
assert (
|
assert (
|
||||||
hass.states.get("sensor.kitchen_sink_temperature").attributes[ATTR_STATE_CLASS]
|
hass.states.get("sensor.kitchen_sink_temperature").attributes[ATTR_STATE_CLASS]
|
||||||
|
@ -148,7 +148,6 @@ async def test_state(hass, setup_comp):
|
|||||||
for state_1 in (STATE_UNAVAILABLE, STATE_UNKNOWN):
|
for state_1 in (STATE_UNAVAILABLE, STATE_UNKNOWN):
|
||||||
for state_2 in (STATE_UNAVAILABLE, STATE_UNKNOWN):
|
for state_2 in (STATE_UNAVAILABLE, STATE_UNKNOWN):
|
||||||
for state_3 in (STATE_UNAVAILABLE, STATE_UNKNOWN):
|
for state_3 in (STATE_UNAVAILABLE, STATE_UNKNOWN):
|
||||||
print("meh")
|
|
||||||
hass.states.async_set(CEILING_FAN_ENTITY_ID, state_1, {})
|
hass.states.async_set(CEILING_FAN_ENTITY_ID, state_1, {})
|
||||||
hass.states.async_set(LIVING_ROOM_FAN_ENTITY_ID, state_2, {})
|
hass.states.async_set(LIVING_ROOM_FAN_ENTITY_ID, state_2, {})
|
||||||
hass.states.async_set(PERCENTAGE_FULL_FAN_ENTITY_ID, state_3, {})
|
hass.states.async_set(PERCENTAGE_FULL_FAN_ENTITY_ID, state_3, {})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user