mirror of
https://github.com/Andre0512/hon.git
synced 2026-05-07 09:54:41 +02:00
Fix issues from refactoring
This commit is contained in:
@@ -72,7 +72,7 @@ class HonLightEntity(HonEntity, LightEntity):
|
||||
device: HonAppliance,
|
||||
description: LightEntityDescription,
|
||||
) -> None:
|
||||
light = self._device.settings.get(self.entity_description.key)
|
||||
light = device.settings.get(description.key)
|
||||
if not isinstance(light, HonParameterRange):
|
||||
raise ValueError()
|
||||
self._light_range = (light.min, light.max)
|
||||
|
||||
Reference in New Issue
Block a user