Minor naming fix (#3318)

pull/3349/head
Heiko Rothe 2016-09-12 16:58:49 +02:00 committed by Fabian Affolter
parent ac063f8e61
commit 240cb9b8f0
1 changed files with 2 additions and 1 deletions

View File

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