From 240cb9b8f03b5fe44c7958153603da41ab040853 Mon Sep 17 00:00:00 2001 From: Heiko Rothe Date: Mon, 12 Sep 2016 16:58:49 +0200 Subject: [PATCH] Minor naming fix (#3318) --- homeassistant/components/sensor/xbox_live.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/xbox_live.py b/homeassistant/components/sensor/xbox_live.py index 90983e1df83..9552eea1001 100644 --- a/homeassistant/components/sensor/xbox_live.py +++ b/homeassistant/components/sensor/xbox_live.py @@ -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):