mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
fix xbox live entity id (#3368)
This commit is contained in:
parent
898cf1b352
commit
812dc99073
@ -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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user