diff --git a/homeassistant/components/spider/climate.py b/homeassistant/components/spider/climate.py index 7730d8b34c4..78764ccf4e7 100644 --- a/homeassistant/components/spider/climate.py +++ b/homeassistant/components/spider/climate.py @@ -44,6 +44,16 @@ class SpiderThermostat(ClimateEntity): self.api = api self.thermostat = thermostat + @property + def device_info(self): + """Return the device_info of the device.""" + return { + "identifiers": {(DOMAIN, self.thermostat.id)}, + "name": self.thermostat.name, + "manufacturer": self.thermostat.manufacturer, + "model": self.thermostat.model, + } + @property def supported_features(self): """Return the list of supported features.""" diff --git a/homeassistant/components/spider/manifest.json b/homeassistant/components/spider/manifest.json index b285cafcfa9..32567e6d134 100644 --- a/homeassistant/components/spider/manifest.json +++ b/homeassistant/components/spider/manifest.json @@ -3,7 +3,7 @@ "name": "Itho Daalderop Spider", "documentation": "https://www.home-assistant.io/integrations/spider", "requirements": [ - "spiderpy==1.3.1" + "spiderpy==1.4.2" ], "codeowners": [ "@peternijssen" diff --git a/homeassistant/components/spider/switch.py b/homeassistant/components/spider/switch.py index 1b0c86468ea..c9a99f3c205 100644 --- a/homeassistant/components/spider/switch.py +++ b/homeassistant/components/spider/switch.py @@ -5,7 +5,7 @@ from .const import DOMAIN async def async_setup_entry(hass, config, async_add_entities): - """Initialize a Spider thermostat.""" + """Initialize a Spider Power Plug.""" api = hass.data[DOMAIN][config.entry_id] async_add_entities( [ @@ -19,10 +19,20 @@ class SpiderPowerPlug(SwitchEntity): """Representation of a Spider Power Plug.""" def __init__(self, api, power_plug): - """Initialize the Vera device.""" + """Initialize the Spider Power Plug.""" self.api = api self.power_plug = power_plug + @property + def device_info(self): + """Return the device_info of the device.""" + return { + "identifiers": {(DOMAIN, self.power_plug.id)}, + "name": self.power_plug.name, + "manufacturer": self.power_plug.manufacturer, + "model": self.power_plug.model, + } + @property def unique_id(self): """Return the ID of this switch.""" diff --git a/requirements_all.txt b/requirements_all.txt index 79f1472043d..f81fbe44f1e 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2087,7 +2087,7 @@ speak2mary==1.4.0 speedtest-cli==2.1.2 # homeassistant.components.spider -spiderpy==1.3.1 +spiderpy==1.4.2 # homeassistant.components.spotcrime spotcrime==1.0.4 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 75f8f1cdece..91c387f9d4f 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1024,7 +1024,7 @@ speak2mary==1.4.0 speedtest-cli==2.1.2 # homeassistant.components.spider -spiderpy==1.3.1 +spiderpy==1.4.2 # homeassistant.components.spotify spotipy==2.16.1