mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 20:36:52 +00:00
fix import in custom components documentation (#1909)
This commit is contained in:
parent
a3f5062ec7
commit
b58f1fc712
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user