Update homekit_controller import style (#25940)

This commit is contained in:
Jc2k authored and Paulus Schoutsen committed 2019-08-14 09:14:15 -07:00
1 parent d8e2518e0d
commit 002f74c76b
9 files changed
+24 -52

No files matched your search

@@ -1,6 +1,8 @@
"""Support for Homekit switches."""
import logging
from homekit.model.characteristics import CharacteristicsTypes
from homeassistant.components.switch import SwitchDevice
from . import KNOWN_DEVICES, HomeKitEntity
@@ -41,9 +43,6 @@ class HomeKitSwitch(HomeKitEntity, SwitchDevice):
def get_characteristic_types(self):
"""Define the homekit characteristics the entity cares about."""
# pylint: disable=import-error
from homekit.model.characteristics import CharacteristicsTypes
return [CharacteristicsTypes.ON, CharacteristicsTypes.OUTLET_IN_USE]
def _update_on(self, value):