Skip to content

Commit

Permalink
Merge 8aed002 into 07e3843
Browse files Browse the repository at this point in the history
  • Loading branch information
glentakahashi committed Dec 16, 2018
2 parents 07e3843 + 8aed002 commit eadc6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/config/entity_registry.py
Expand Up @@ -104,7 +104,7 @@ async def websocket_update_entity(hass, connection, msg):
if 'name' in msg:
changes['name'] = msg['name']

if 'new_entity_id' in msg:
if 'new_entity_id' in msg and msg['new_entity_id'] != msg['entity_id']:
changes['new_entity_id'] = msg['new_entity_id']
if hass.states.get(msg['new_entity_id']) is not None:
connection.send_message(websocket_api.error_message(
Expand Down

0 comments on commit eadc6eb

Please sign in to comment.