Fix unit for Habitica text sensors (#94550)
This commit is contained in:
parent
ffe35c73b6
commit
78bbec0a6e
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=15)
|
||||||
SensorType = namedtuple("SensorType", ["name", "icon", "unit", "path"])
|
SensorType = namedtuple("SensorType", ["name", "icon", "unit", "path"])
|
||||||
|
|
||||||
SENSORS_TYPES = {
|
SENSORS_TYPES = {
|
||||||
"name": SensorType("Name", None, "", ["profile", "name"]),
|
"name": SensorType("Name", None, None, ["profile", "name"]),
|
||||||
"hp": SensorType("HP", "mdi:heart", "HP", ["stats", "hp"]),
|
"hp": SensorType("HP", "mdi:heart", "HP", ["stats", "hp"]),
|
||||||
"maxHealth": SensorType("max HP", "mdi:heart", "HP", ["stats", "maxHealth"]),
|
"maxHealth": SensorType("max HP", "mdi:heart", "HP", ["stats", "maxHealth"]),
|
||||||
"mp": SensorType("Mana", "mdi:auto-fix", "MP", ["stats", "mp"]),
|
"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"]
|
"Lvl", "mdi:arrow-up-bold-circle-outline", "Lvl", ["stats", "lvl"]
|
||||||
),
|
),
|
||||||
"gp": SensorType("Gold", "mdi:circle-multiple", "Gold", ["stats", "gp"]),
|
"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 = {
|
TASKS_TYPES = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue