Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
Add unique_id to sensors
Browse files Browse the repository at this point in the history
Makes them show up in the integrations and makes them
editable.

Fixes #3
Fixes #4
  • Loading branch information
foosel committed Mar 29, 2020
1 parent 056d9a4 commit 3f3fd68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/coronavirus_hessen/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ def available(self):
def name(self):
return self._name

@property
def unique_id(self):
return self._name

@property
def icon(self):
return "mdi:biohazard"
Expand Down

0 comments on commit 3f3fd68

Please sign in to comment.