mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Fix elgato light color detection (#119177)
This commit is contained in:
parent
51d78c3c25
commit
04c8a5574a
@ -59,7 +59,15 @@ class ElgatoLight(ElgatoEntity, LightEntity):
|
||||
self._attr_unique_id = coordinator.data.info.serial_number
|
||||
|
||||
# Elgato Light supporting color, have a different temperature range
|
||||
if self.coordinator.data.settings.power_on_hue is not None:
|
||||
if (
|
||||
self.coordinator.data.info.product_name
|
||||
in (
|
||||
"Elgato Light Strip",
|
||||
"Elgato Light Strip Pro",
|
||||
)
|
||||
or self.coordinator.data.settings.power_on_hue
|
||||
or self.coordinator.data.state.hue is not None
|
||||
):
|
||||
self._attr_supported_color_modes = {ColorMode.COLOR_TEMP, ColorMode.HS}
|
||||
self._attr_min_mireds = 153
|
||||
self._attr_max_mireds = 285
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"productName": "Elgato Key Light",
|
||||
"productName": "Elgato Light Strip",
|
||||
"hardwareBoardType": 53,
|
||||
"firmwareBuildNumber": 192,
|
||||
"firmwareVersion": "1.0.3",
|
||||
|
@ -218,7 +218,7 @@
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Elgato',
|
||||
'model': 'Elgato Key Light',
|
||||
'model': 'Elgato Light Strip',
|
||||
'name': 'Frenck',
|
||||
'name_by_user': None,
|
||||
'serial_number': 'CN11A1A00001',
|
||||
@ -333,7 +333,7 @@
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Elgato',
|
||||
'model': 'Elgato Key Light',
|
||||
'model': 'Elgato Light Strip',
|
||||
'name': 'Frenck',
|
||||
'name_by_user': None,
|
||||
'serial_number': 'CN11A1A00001',
|
||||
|
Loading…
x
Reference in New Issue
Block a user