mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
This commit is contained in:
@@ -4,7 +4,6 @@ from math import sin
|
||||
import random
|
||||
from unittest.mock import patch
|
||||
|
||||
from homeassistant.components.sensor import ATTR_STATE_CLASS, SensorStateClass
|
||||
from homeassistant.const import UnitOfPower, UnitOfTime
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.setup import async_setup_component
|
||||
@@ -79,7 +78,6 @@ async def setup_tests(hass, config, times, values, expected_state):
|
||||
assert state is not None
|
||||
|
||||
assert round(float(state.state), config["sensor"]["round"]) == expected_state
|
||||
assert state.attributes.get(ATTR_STATE_CLASS) is SensorStateClass.MEASUREMENT
|
||||
|
||||
return state
|
||||
|
||||
|
||||
Reference in New Issue
Block a user