1
0
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:
Daniel Høyer Iversen
2019-02-05 11:12:09 +01:00
committed by Pascal Vizeli
parent 2733919cd8
commit ef6b0b8e0b
8 changed files with 13 additions and 10 deletions

View File

@@ -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')