Update flake8 to 3.7.5 (#20761)

* Upgrade flake8

* Upgrade flake8

* Add noqa for hound
This commit is contained in:
Daniel Høyer Iversen authored and Pascal Vizeli committed 2019-02-05 11:12:09 +01:00
1 parent 2733919cd8
commit ef6b0b8e0b
8 files changed
+13 -10

No files matched your search

+1 -1
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')