diff --git a/homeassistant/components/habitica/sensor.py b/homeassistant/components/habitica/sensor.py index e085167301f..d9e0fb227c0 100644 --- a/homeassistant/components/habitica/sensor.py +++ b/homeassistant/components/habitica/sensor.py @@ -24,7 +24,7 @@ MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=15) SensorType = namedtuple("SensorType", ["name", "icon", "unit", "path"]) SENSORS_TYPES = { - "name": SensorType("Name", None, "", ["profile", "name"]), + "name": SensorType("Name", None, None, ["profile", "name"]), "hp": SensorType("HP", "mdi:heart", "HP", ["stats", "hp"]), "maxHealth": SensorType("max HP", "mdi:heart", "HP", ["stats", "maxHealth"]), "mp": SensorType("Mana", "mdi:auto-fix", "MP", ["stats", "mp"]), @@ -35,7 +35,7 @@ SENSORS_TYPES = { "Lvl", "mdi:arrow-up-bold-circle-outline", "Lvl", ["stats", "lvl"] ), "gp": SensorType("Gold", "mdi:circle-multiple", "Gold", ["stats", "gp"]), - "class": SensorType("Class", "mdi:sword", "", ["stats", "class"]), + "class": SensorType("Class", "mdi:sword", None, ["stats", "class"]), } TASKS_TYPES = {