From cdd5d1196af79104f64f10c17c9adc1579682cfa Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen <paulus@paulusschoutsen.nl> Date: Sat, 21 Mar 2015 22:14:30 -0700 Subject: [PATCH] Fix regression from refactoring EntityComponent --- homeassistant/helpers/entity_component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/helpers/entity_component.py b/homeassistant/helpers/entity_component.py index dd98149eaf8..644c06d8901 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.", -- GitLab