Skip to content

Commit

Permalink
Don't slugify unique id (home-assistant#19770)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi authored and balloob committed Jan 4, 2019
1 parent bf40bea commit 65c7bdc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions homeassistant/components/xiaomi_aqara.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.event import async_track_point_in_utc_time
from homeassistant.util.dt import utcnow
from homeassistant.util import slugify

REQUIREMENTS = ['PyXiaomiGateway==0.11.1']

Expand Down Expand Up @@ -222,11 +221,11 @@ def __init__(self, device, device_type, xiaomi_hub):

if hasattr(self, '_data_key') \
and self._data_key: # pylint: disable=no-member
self._unique_id = slugify("{}-{}".format(
self._unique_id = "{}{}".format(
self._data_key, # pylint: disable=no-member
self._sid))
self._sid)
else:
self._unique_id = slugify("{}-{}".format(self._type, self._sid))
self._unique_id = "{}{}".format(self._type, self._sid)

def _add_push_data_job(self, *args):
self.hass.add_job(self.push_data, *args)
Expand Down

0 comments on commit 65c7bdc

Please sign in to comment.