mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Update flake8 to 3.7.5 (#20761)
* Upgrade flake8 * Upgrade flake8 * Add noqa for hound
This commit is contained in:
committed by
Pascal Vizeli
parent
2733919cd8
commit
ef6b0b8e0b
@@ -82,7 +82,7 @@ def test_default_setup(hass, mock_connection_factory):
|
||||
# ensure entities have new state value after incoming telegram
|
||||
power_consumption = hass.states.get('sensor.power_consumption')
|
||||
assert power_consumption.state == '0.0'
|
||||
assert power_consumption.attributes.get('unit_of_measurement') is 'kWh'
|
||||
assert power_consumption.attributes.get('unit_of_measurement') == 'kWh'
|
||||
|
||||
# tariff should be translated in human readable and have no unit
|
||||
power_tariff = hass.states.get('sensor.power_tariff')
|
||||
|
||||
Reference in New Issue
Block a user