Add configuration URL to Spider (#59171)

pull/59187/head
Peter Nijssen 2021-11-05 19:11:30 +01:00 committed by GitHub
parent 2d48f4b65e
commit d384feb87f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@ class SpiderThermostat(ClimateEntity):
def device_info(self) -> DeviceInfo:
"""Return the device_info of the device."""
return DeviceInfo(
configuration_url="https://mijn.ithodaalderop.nl/",
identifiers={(DOMAIN, self.thermostat.id)},
manufacturer=self.thermostat.manufacturer,
model=self.thermostat.model,

View File

@ -28,6 +28,7 @@ class SpiderPowerPlug(SwitchEntity):
def device_info(self) -> DeviceInfo:
"""Return the device_info of the device."""
return DeviceInfo(
configuration_url="https://mijn.ithodaalderop.nl/",
identifiers={(DOMAIN, self.power_plug.id)},
manufacturer=self.power_plug.manufacturer,
model=self.power_plug.model,