Use relative imports inside integrations (#22235)
* Use relative imports inside integrations * Lint * Fix automation tests * Fix scene imports
This commit is contained in:
1 parent
ab17b22239
commit
4b1de61110
522 files changed
+1834
-1725
No files matched your search
@@ -1,7 +1,6 @@
|
||||
"""Support for HDMI CEC devices as media players."""
|
||||
import logging
|
||||
|
||||
from homeassistant.components.hdmi_cec import ATTR_NEW, CecDevice
|
||||
from homeassistant.components.media_player import MediaPlayerDevice
|
||||
from homeassistant.components.media_player.const import (
|
||||
DOMAIN, SUPPORT_NEXT_TRACK, SUPPORT_PAUSE, SUPPORT_PLAY_MEDIA,
|
||||
@@ -10,6 +9,8 @@ from homeassistant.components.media_player.const import (
|
||||
from homeassistant.const import (
|
||||
STATE_IDLE, STATE_OFF, STATE_ON, STATE_PAUSED, STATE_PLAYING)
|
||||
|
||||
from . import ATTR_NEW, CecDevice
|
||||
|
||||
DEPENDENCIES = ['hdmi_cec']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
"""Support for HDMI CEC devices as switches."""
|
||||
import logging
|
||||
|
||||
from homeassistant.components.hdmi_cec import ATTR_NEW, CecDevice
|
||||
from homeassistant.components.switch import DOMAIN, SwitchDevice
|
||||
from homeassistant.const import STATE_OFF, STATE_ON, STATE_STANDBY
|
||||
|
||||
from . import ATTR_NEW, CecDevice
|
||||
|
||||
DEPENDENCIES = ['hdmi_cec']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
Reference in new issue
Block a user