mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-13 14:44:23 -04:00
Fix issues from refactoring
This commit is contained in:
parent
2acc6225c4
commit
3924c6ed77
7 changed files with 90 additions and 89 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue