mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Add unique_id to ohmconnect (#78479)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
10a12b1bc9
commit
f07204ba55
@ -51,6 +51,7 @@ class OhmconnectSensor(SensorEntity):
|
|||||||
self._name = name
|
self._name = name
|
||||||
self._ohmid = ohmid
|
self._ohmid = ohmid
|
||||||
self._data = {}
|
self._data = {}
|
||||||
|
self._attr_unique_id = ohmid
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user