add friendly_name_template to template sensor (#12268)

* add friendly_name_template to template sensor.
If set, overrides friendly_name setting.

* Add test
This commit is contained in:
NovapaX authored and Paulus Schoutsen committed 2018-02-11 12:12:30 -08:00
1 parent 47bfef9640
commit 219ed7331c
3 files changed
+39 -3

No files matched your search

+1
View File
@@ -76,6 +76,7 @@ CONF_FILENAME = 'filename'
CONF_FOR = 'for'
CONF_FORCE_UPDATE = 'force_update'
CONF_FRIENDLY_NAME = 'friendly_name'
CONF_FRIENDLY_NAME_TEMPLATE = 'friendly_name_template'
CONF_HEADERS = 'headers'
CONF_HOST = 'host'
CONF_HOSTS = 'hosts'