1 """Sensor platform for JVC Projector integration."""
3 from __future__
import annotations
5 from jvcprojector
import const
10 SensorEntityDescription,
16 from .
import JVCConfigEntry, JvcProjectorDataUpdateCoordinator
17 from .entity
import JvcProjectorEntity
22 translation_key=
"jvc_power_status",
23 device_class=SensorDeviceClass.ENUM,
24 entity_category=EntityCategory.DIAGNOSTIC,
37 hass: HomeAssistant, entry: JVCConfigEntry, async_add_entities: AddEntitiesCallback
39 """Set up the JVC Projector platform from a config entry."""
40 coordinator = entry.runtime_data
43 JvcSensor(coordinator, description)
for description
in JVC_SENSORS
48 """The entity class for JVC Projector integration."""
52 coordinator: JvcProjectorDataUpdateCoordinator,
53 description: SensorEntityDescription,
55 """Initialize the JVC Projector sensor."""
62 """Return the native value."""
str|None native_value(self)
None __init__(self, JvcProjectorDataUpdateCoordinator coordinator, SensorEntityDescription description)
None async_setup_entry(HomeAssistant hass, JVCConfigEntry entry, AddEntitiesCallback async_add_entities)