Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion homeassistant/components/lutron_caseta.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from homeassistant.helpers import discovery
from homeassistant.helpers.entity import Entity

REQUIREMENTS = ['pylutron-caseta==0.5.0']
REQUIREMENTS = ['pylutron-caseta==0.5.1']

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -82,6 +82,7 @@ def __init__(self, device, bridge):
self._device_type = device["type"]
self._device_name = device["name"]
self._device_zone = device["zone"]
self._device_serial = device["serial"]
self._state = None
self._smartbridge = bridge

Expand All @@ -96,6 +97,16 @@ def name(self):
"""Return the name of the device."""
return self._device_name

@property
def serial(self):
"""Return the serial number of the device."""
return self._device_serial

@property
def unique_id(self):
"""Return the unique ID of the device (serial)."""
return str(self._device_serial)

@property
def device_state_attributes(self):
"""Return the state attributes."""
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ pylitejet==0.1
pyloopenergy==0.0.18

# homeassistant.components.lutron_caseta
pylutron-caseta==0.5.0
pylutron-caseta==0.5.1

# homeassistant.components.lutron
pylutron==0.1.0
Expand Down