Added vera components and added __pycache__ to gitignore

This commit is contained in:
jamespcole 2015-03-02 22:05:03 +11:00
parent 3449b3d1d7
commit 8dfc91a502
5 changed files with 32 additions and 6 deletions

View file

@ -5,7 +5,7 @@ import time
import json
from homeassistant.helpers import Device
import config.custom_components.external.vera as veraApi
import homeassistant.external.vera.vera as veraApi
from homeassistant.const import (STATE_OPEN, STATE_CLOSED, ATTR_FRIENDLY_NAME)
_LOGGER = logging.getLogger('Vera_Sensor')
@ -78,7 +78,7 @@ class VeraSensor(Device):
def unique_id(self):
""" Returns the id of this switch """
return "{}.{}".format(
self.__class__, self.info.get('uniqueid', 'vera-sensor-' + self.vera_device.deviceId))
self.__class__, self.info.get('uniqueid', self.name))
@property
def name(self):