Fix regression from refactoring EntityComponent
This commit is contained in:
parent
06d85595a0
commit
cdd5d1196a
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ class EntityComponent(object):
|
|||
self.hass, config, self.add_entities, discovery_info)
|
||||
except AttributeError:
|
||||
# Support old deprecated method for now - 3/1/2015
|
||||
if hasattr(platform, 'get_entities'):
|
||||
if hasattr(platform, 'get_devices'):
|
||||
self.logger.warning(
|
||||
"Please upgrade %s to return new entities using "
|
||||
"setup_platform. See %s/demo.py for an example.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue