Skip to content
Snippets Groups Projects
Commit cdd5d119 authored by Paulus Schoutsen's avatar Paulus Schoutsen
Browse files

Fix regression from refactoring EntityComponent

parent 06d85595
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ class EntityComponent(object): ...@@ -129,7 +129,7 @@ class EntityComponent(object):
self.hass, config, self.add_entities, discovery_info) self.hass, config, self.add_entities, discovery_info)
except AttributeError: except AttributeError:
# Support old deprecated method for now - 3/1/2015 # Support old deprecated method for now - 3/1/2015
if hasattr(platform, 'get_entities'): if hasattr(platform, 'get_devices'):
self.logger.warning( self.logger.warning(
"Please upgrade %s to return new entities using " "Please upgrade %s to return new entities using "
"setup_platform. See %s/demo.py for an example.", "setup_platform. See %s/demo.py for an example.",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment