mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix regression from refactoring EntityComponent
This commit is contained in:
parent
06d85595a0
commit
cdd5d1196a
@ -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.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user