fix xbox live entity id (#3368)

This commit is contained in:
Pascal Vizeli 2016-09-13 21:27:43 +02:00 committed by GitHub
parent 898cf1b352
commit 812dc99073

View File

@ -11,7 +11,6 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import (CONF_API_KEY, STATE_UNKNOWN) from homeassistant.const import (CONF_API_KEY, STATE_UNKNOWN)
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity from homeassistant.helpers.entity import Entity
from homeassistant.util import slugify
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
@ -73,11 +72,6 @@ class XboxSensor(Entity):
"""Return the name of the sensor.""" """Return the name of the sensor."""
return self._gamertag return self._gamertag
@property
def entity_id(self):
"""Return the entity ID."""
return 'sensor.xbox_' + slugify(self._gamertag)
@property @property
def state(self): def state(self):
"""Return the state of the sensor.""" """Return the state of the sensor."""