Allow both _ and - in entity ids in configuration. Fix #13
This commit is contained in:
parent
5dff7fcee4
commit
cc4df1c349
@ -16,7 +16,7 @@ async def async_setup(hass, config):
|
||||
for d in config[DOMAIN].get(CONFIG_DEVICES, {}):
|
||||
name = config[DOMAIN][CONFIG_DEVICES][d].get("name", None)
|
||||
if name:
|
||||
aliases[name] = d
|
||||
aliases[name] = d.replace('_','-')
|
||||
|
||||
hass.data[DOMAIN] = {
|
||||
DATA_DEVICES: {},
|
||||
|
Loading…
x
Reference in New Issue
Block a user