mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Add device info to Freedompro (#52715)
* Update Freedompro * Update homeassistant/components/freedompro/light.py Co-authored-by: Franck Nijhof <frenck@frenck.nl> Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
2787dc9e97
commit
1e6229dd7b
@ -43,6 +43,14 @@ class Device(CoordinatorEntity, LightEntity):
|
|||||||
self._attr_unique_id = device["uid"]
|
self._attr_unique_id = device["uid"]
|
||||||
self._type = device["type"]
|
self._type = device["type"]
|
||||||
self._characteristics = device["characteristics"]
|
self._characteristics = device["characteristics"]
|
||||||
|
self._attr_device_info = {
|
||||||
|
"name": self.name,
|
||||||
|
"identifiers": {
|
||||||
|
(DOMAIN, self.unique_id),
|
||||||
|
},
|
||||||
|
"model": self._type,
|
||||||
|
"manufacturer": "Freedompro",
|
||||||
|
}
|
||||||
self._attr_is_on = False
|
self._attr_is_on = False
|
||||||
self._attr_brightness = 0
|
self._attr_brightness = 0
|
||||||
color_mode = COLOR_MODE_ONOFF
|
color_mode = COLOR_MODE_ONOFF
|
||||||
|
@ -15,7 +15,7 @@ DEVICES = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"uid": "3WRRJR6RCZQZSND8VP0YTO3YXCSOFPKBMW8T51TU-LQ*ILYH1E3DWZOVMNEUIMDYMNLOW-LFRQFDPWWJOVHVDOS",
|
"uid": "3WRRJR6RCZQZSND8VP0YTO3YXCSOFPKBMW8T51TU-LQ*ILYH1E3DWZOVMNEUIMDYMNLOW-LFRQFDPWWJOVHVDOS",
|
||||||
"name": "Bedroom fan",
|
"name": "bedroom",
|
||||||
"type": "fan",
|
"type": "fan",
|
||||||
"characteristics": ["on", "rotationSpeed"],
|
"characteristics": ["on", "rotationSpeed"],
|
||||||
},
|
},
|
||||||
@ -39,7 +39,7 @@ DEVICES = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"uid": "3WRRJR6RCZQZSND8VP0YTO3YXCSOFPKBMW8T51TU-LQ*1JKU1MVWHQL-Z9SCUS85VFXMRGNDCDNDDUVVDKBU31W",
|
"uid": "3WRRJR6RCZQZSND8VP0YTO3YXCSOFPKBMW8T51TU-LQ*1JKU1MVWHQL-Z9SCUS85VFXMRGNDCDNDDUVVDKBU31W",
|
||||||
"name": "Irrigation switch",
|
"name": "irrigation",
|
||||||
"type": "switch",
|
"type": "switch",
|
||||||
"characteristics": ["on"],
|
"characteristics": ["on"],
|
||||||
},
|
},
|
||||||
@ -81,7 +81,7 @@ DEVICES = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"uid": "3WRRJR6RCZQZSND8VP0YTO3YXCSOFPKBMW8T51TU-LQ*TWMYQKL3UVED4HSIIB9GXJWJZBQCXG-9VE-N2IUAIWI",
|
"uid": "3WRRJR6RCZQZSND8VP0YTO3YXCSOFPKBMW8T51TU-LQ*TWMYQKL3UVED4HSIIB9GXJWJZBQCXG-9VE-N2IUAIWI",
|
||||||
"name": "Bedroom thermostat",
|
"name": "thermostat",
|
||||||
"type": "thermostat",
|
"type": "thermostat",
|
||||||
"characteristics": [
|
"characteristics": [
|
||||||
"heatingCoolingState",
|
"heatingCoolingState",
|
||||||
@ -91,7 +91,7 @@ DEVICES = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"uid": "3WRRJR6RCZQZSND8VP0YTO3YXCSOFPKBMW8T51TU-LQ*3XSSVIJWK-65HILWTC4WINQK46SP4OEZRCNO25VGWAS",
|
"uid": "3WRRJR6RCZQZSND8VP0YTO3YXCSOFPKBMW8T51TU-LQ*3XSSVIJWK-65HILWTC4WINQK46SP4OEZRCNO25VGWAS",
|
||||||
"name": "Bedroom window covering",
|
"name": "blind",
|
||||||
"type": "windowCovering",
|
"type": "windowCovering",
|
||||||
"characteristics": ["position"],
|
"characteristics": ["position"],
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user