2021-07-20 00:22:41 -04:00
|
|
|
"""Tests for ClimaCell const."""
|
|
|
|
import pytest
|
|
|
|
|
2021-07-27 23:47:29 +02:00
|
|
|
from homeassistant.components.climacell.const import ClimaCellSensorEntityDescription
|
2021-07-20 00:22:41 -04:00
|
|
|
from homeassistant.const import TEMP_FAHRENHEIT
|
|
|
|
|
|
|
|
|
|
|
|
async def test_post_init():
|
2022-01-17 09:39:43 -05:00
|
|
|
"""Test post initialization check for ClimaCellSensorEntityDescription."""
|
2021-07-20 00:22:41 -04:00
|
|
|
|
|
|
|
with pytest.raises(RuntimeError):
|
2021-07-27 23:47:29 +02:00
|
|
|
ClimaCellSensorEntityDescription(
|
|
|
|
key="a", name="b", unit_imperial=TEMP_FAHRENHEIT
|
|
|
|
)
|