diff --git a/homeassistant/helpers/entity_component.py b/homeassistant/helpers/entity_component.py index dd98149eaf83f62f45eabba2c2ccd0ebcfc1f257..644c06d890133fc43a70a8fa69d82c3fba53af28 100644 --- a/homeassistant/helpers/entity_component.py +++ b/homeassistant/helpers/entity_component.py @@ -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.",