2021-07-20 04:22:41 +00:00
|
|
|
"""Tests for ClimaCell const."""
|
|
|
|
import pytest
|
|
|
|
|
2021-07-27 21:47:29 +00:00
|
|
|
from homeassistant.components.climacell.const import ClimaCellSensorEntityDescription
|
2021-07-20 04:22:41 +00:00
|
|
|
from homeassistant.const import TEMP_FAHRENHEIT
|
|
|
|
|
|
|
|
|
|
|
|
async def test_post_init():
|
2021-07-27 21:47:29 +00:00
|
|
|
"""Test post initiailization check for ClimaCellSensorEntityDescription."""
|
2021-07-20 04:22:41 +00:00
|
|
|
|
|
|
|
with pytest.raises(RuntimeError):
|
2021-07-27 21:47:29 +00:00
|
|
|
ClimaCellSensorEntityDescription(
|
|
|
|
key="a", name="b", unit_imperial=TEMP_FAHRENHEIT
|
|
|
|
)
|