mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-25 07:05:47 +01:00
15 lines
444 B
Python
15 lines
444 B
Python
"""Tests for ClimaCell const."""
|
|
import pytest
|
|
|
|
from homeassistant.components.climacell.const import ClimaCellSensorEntityDescription
|
|
from homeassistant.const import TEMP_FAHRENHEIT
|
|
|
|
|
|
async def test_post_init():
|
|
"""Test post initiailization check for ClimaCellSensorEntityDescription."""
|
|
|
|
with pytest.raises(RuntimeError):
|
|
ClimaCellSensorEntityDescription(
|
|
key="a", name="b", unit_imperial=TEMP_FAHRENHEIT
|
|
)
|