pylint 2.3.0 (#21485)
* pylint 2.3.0 * remove const * disable=syntax-error
This commit is contained in:
parent
2482816a11
commit
519315f9c8
26 changed files with 47 additions and 57 deletions
|
@ -334,9 +334,9 @@ class EntityPlatform:
|
|||
if not valid_entity_id(entity.entity_id):
|
||||
raise HomeAssistantError(
|
||||
'Invalid entity id: {}'.format(entity.entity_id))
|
||||
elif (entity.entity_id in self.entities or
|
||||
entity.entity_id in self.hass.states.async_entity_ids(
|
||||
self.domain)):
|
||||
if (entity.entity_id in self.entities or
|
||||
entity.entity_id in self.hass.states.async_entity_ids(
|
||||
self.domain)):
|
||||
msg = 'Entity id already exists: {}'.format(entity.entity_id)
|
||||
if entity.unique_id is not None:
|
||||
msg += '. Platform {} does not generate unique IDs'.format(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue