mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Minor naming fix (#3318)
This commit is contained in:
parent
ac063f8e61
commit
240cb9b8f0
@ -11,6 +11,7 @@ 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__)
|
||||||
|
|
||||||
@ -75,7 +76,7 @@ class XboxSensor(Entity):
|
|||||||
@property
|
@property
|
||||||
def entity_id(self):
|
def entity_id(self):
|
||||||
"""Return the entity ID."""
|
"""Return the entity ID."""
|
||||||
return 'sensor.xbox_' + self._gamertag
|
return 'sensor.xbox_' + slugify(self._gamertag)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def state(self):
|
def state(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user