Skip to content

Commit

Permalink
Fixed: allinone option with the sensorname not always work
Browse files Browse the repository at this point in the history
  • Loading branch information
ualex73 committed Jul 11, 2020
1 parent 55f2350 commit 35cf43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/monitor_docker/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def __init__(
self._entity_id = ENTITY_ID_FORMAT.format(
slugify(self._prefix + "_" + self._cname)
)
self._name = sensor_name_format.format(name=alias)
self._name = sensor_name_format.format(name=alias, sensorname="", sensor="")
else:
self._entity_id = ENTITY_ID_FORMAT.format(
slugify(self._prefix + "_" + self._cname + "_" + self._var_name)
Expand Down

0 comments on commit 35cf43e

Please sign in to comment.