Remove None from dict.get(key, None) (#33794)

This commit is contained in:
springstan authored and GitHub committed 2020-04-07 21:06:05 +02:00
1 parent d54ee77375
commit 46bbe816f6
45 files changed
+104 -110

No files matched your search

@@ -33,7 +33,7 @@ async def test_network_unreachable(hass):
hass, DOMAIN, {DOMAIN: {CONF_HOST: "fake_host", CONF_USERNAME: "fake_user"}}
)
assert result
assert hass.data.get(DATA_ASUSWRT, None) is None
assert hass.data.get(DATA_ASUSWRT) is None
async def test_get_scanner_with_password_no_pubkey(hass):
+3 -3
View File
@@ -594,9 +594,9 @@ def _verify(
state = hass.states.get(_TEST_FAN)
attributes = state.attributes
assert state.state == expected_state
assert attributes.get(ATTR_SPEED, None) == expected_speed
assert attributes.get(ATTR_OSCILLATING, None) == expected_oscillating
assert attributes.get(ATTR_DIRECTION, None) == expected_direction
assert attributes.get(ATTR_SPEED) == expected_speed
assert attributes.get(ATTR_OSCILLATING) == expected_oscillating
assert attributes.get(ATTR_DIRECTION) == expected_direction
async def _register_components(hass, speed_list=None):