From 3f0fed2a7a28b75bf94a4318ceb8a67ba8ef2da6 Mon Sep 17 00:00:00 2001 From: Malene Trab Date: Fri, 29 Dec 2023 12:39:10 +0000 Subject: [PATCH] Fixing device name --- custom_components/webastoconnect/binary_sensor.py | 2 +- custom_components/webastoconnect/number.py | 2 +- custom_components/webastoconnect/sensor.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/webastoconnect/binary_sensor.py b/custom_components/webastoconnect/binary_sensor.py index 5ead607..3fbe6de 100644 --- a/custom_components/webastoconnect/binary_sensor.py +++ b/custom_components/webastoconnect/binary_sensor.py @@ -82,7 +82,7 @@ def __init__( self._attr_device_info = { "identifiers": {(DOMAIN, self.coordinator.cloud.device_id)}, - "name": self.name, + "name": self.coordinator.cloud.name, "model": "ThermoConnect", "manufacturer": "Webasto", } diff --git a/custom_components/webastoconnect/number.py b/custom_components/webastoconnect/number.py index fe495d7..6e14988 100644 --- a/custom_components/webastoconnect/number.py +++ b/custom_components/webastoconnect/number.py @@ -90,7 +90,7 @@ def __init__( self._attr_should_poll = False self._attr_device_info = { "identifiers": {(DOMAIN, self.coordinator.cloud.device_id)}, - "name": self.name, + "name": self.coordinator.cloud.name, "model": "ThermoConnect", "manufacturer": "Webasto", } diff --git a/custom_components/webastoconnect/sensor.py b/custom_components/webastoconnect/sensor.py index d32bb4b..205d7d9 100644 --- a/custom_components/webastoconnect/sensor.py +++ b/custom_components/webastoconnect/sensor.py @@ -108,7 +108,7 @@ def __init__( self._attr_device_info = { "identifiers": {(DOMAIN, self.coordinator.cloud.device_id)}, - "name": self.name, + "name": self.coordinator.cloud.name, "model": "ThermoConnect", "manufacturer": "Webasto", }