Skip to content

Commit dedac84

Browse files
committed
Merge mess cleanup causing namechange
1 parent bea1035 commit dedac84

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

custom_components/plugwise-beta/binary_sensor.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ def state(self):
122122
@property
123123
def device_info(self) -> Dict[str, any]:
124124
"""Return the device information."""
125-
via_device = None
126-
dev_name = f"{self._name.split('_')[0]} Sensors"
127-
if self._dev_id is not self._api.gateway_id:
128-
via_device = (DOMAIN, self._api.gateway_id)
129125
return {
130126
"identifiers": {(DOMAIN, self._dev_id)},
131127
"name": self._name,

custom_components/plugwise-beta/sensor.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,9 @@ def state(self):
254254
@property
255255
def device_info(self) -> Dict[str, any]:
256256
"""Return the device information."""
257-
via_device = None
258-
dev_name = f"{self._name.split('_')[0]} Sensors"
259-
if self._dev_id is not self._api.gateway_id:
260-
via_device = (DOMAIN, self._api.gateway_id)
261257
return {
262258
"identifiers": {(DOMAIN, self._dev_id)},
263-
"name": dev_name,
259+
"name": self._name,
264260
"manufacturer": "Plugwise",
265261
"via_device": (DOMAIN, self._via_id),
266262
}

0 commit comments

Comments
 (0)