fix import in custom components documentation (#1909)

This commit is contained in:
Stéphane Bidoul (ACSONE) 2017-01-30 08:36:13 +01:00 committed by Fabian Affolter
parent a3f5062ec7
commit b58f1fc712

View File

@ -59,7 +59,7 @@ def setup(hass, config):
Add your custom device specific code to the `setup_platform` method in `light/myflashyhub.py` and `switch/myflashyhub`. Add your custom device specific code to the `setup_platform` method in `light/myflashyhub.py` and `switch/myflashyhub`.
```python ```python
import homeassistant.components.myflashyhub as myflashyhub import custom_components.myflashyhub as myflashyhub
# 'switch' will receive discovery_info={'optional': 'arguments'} # 'switch' will receive discovery_info={'optional': 'arguments'}
# as passed in above. 'light' will receive discovery_info=None # as passed in above. 'light' will receive discovery_info=None