Skip to content

Commit

Permalink
Merge pull request #18 from chrisns/patch-1
Browse files Browse the repository at this point in the history
Add unique ids
  • Loading branch information
And3rsL authored Oct 14, 2021
2 parents 47a82d7 + 0ae78a1 commit b485a74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/visonicalarm/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ def name(self):
""" Return the name of the sensor """
return 'Visonic Alarm ' + str(self._id)

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

@property
def state_attributes(self):
"""Return the state attributes of the alarm system."""
Expand Down

0 comments on commit b485a74

Please sign in to comment.