mirror of
https://github.com/home-assistant/core.git
synced 2026-05-23 17:00:13 +01:00
f028079815
Co-authored-by: René Klomp <rene@klomp.ws>
10 lines
331 B
Python
10 lines
331 B
Python
"""Test the sma sensor platform."""
|
|
from homeassistant.const import ATTR_UNIT_OF_MEASUREMENT, POWER_WATT
|
|
|
|
|
|
async def test_sensors(hass, init_integration):
|
|
"""Test states of the sensors."""
|
|
state = hass.states.get("sensor.grid_power")
|
|
assert state
|
|
assert state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) == POWER_WATT
|