mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Fix attribute entity (#8066)
* Bugfix entity attribute setter * Fix tests * Fix tests part 2 * Change filter only None * Fix tests part 3 * Update entity.py * Fix tests
This commit is contained in:
committed by
Paulus Schoutsen
parent
32a84f1466
commit
2438c6b7c2
@@ -88,7 +88,7 @@ def test_default_setup(hass, mock_connection_factory):
|
||||
# tariff should be translated in human readable and have no unit
|
||||
power_tariff = hass.states.get('sensor.power_tariff')
|
||||
assert power_tariff.state == 'low'
|
||||
assert power_tariff.attributes.get('unit_of_measurement') is None
|
||||
assert power_tariff.attributes.get('unit_of_measurement') == ''
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
|
||||
Reference in New Issue
Block a user