mirror of
https://github.com/Andre0512/hon.git
synced 2026-05-07 18:04:42 +02:00
Update docs
This commit is contained in:
@@ -18,7 +18,7 @@ from .hon import HonEntity
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
FANS = {
|
||||
LIGHTS = {
|
||||
"WC": (LightEntityDescription(key="settings.lightStatus", name="Light"),),
|
||||
"HO": (
|
||||
LightEntityDescription(
|
||||
@@ -33,7 +33,7 @@ FANS = {
|
||||
async def async_setup_entry(hass, entry: ConfigEntry, async_add_entities) -> None:
|
||||
entities = []
|
||||
for device in hass.data[DOMAIN][entry.unique_id].appliances:
|
||||
for description in FANS.get(device.appliance_type, []):
|
||||
for description in LIGHTS.get(device.appliance_type, []):
|
||||
if (
|
||||
description.key not in device.available_settings
|
||||
or device.get(description.key.split(".")[-1]) is None
|
||||
|
||||
Reference in New Issue
Block a user