Update flake8 to 3.7.5 (#20761)
* Upgrade flake8 * Upgrade flake8 * Add noqa for hound
This commit is contained in:
1 parent
2733919cd8
commit
ef6b0b8e0b
8 files changed
+13
-10
No files matched your search
@@ -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