Skip to content

Commit

Permalink
Prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
tschamm committed Dec 4, 2021
1 parent fab0fc9 commit 8c9deff
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 10 deletions.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[flake8]
max-line-length = 88
ignore = E501, W503

1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
rev: v2.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-docstrings]
1 change: 0 additions & 1 deletion custom_components/bosch_shc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ def _async_input_events_handler(self):

async def async_setup(self):
"""Set up the listener."""

device_registry = await dr.async_get_registry(self.hass)
device_entry = device_registry.async_get_or_create(
config_entry_id=self.entry.entry_id,
Expand Down
5 changes: 2 additions & 3 deletions custom_components/bosch_shc/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
)

from .const import DATA_SESSION, DOMAIN
from .entity import SHCEntity

_LOGGER = logging.getLogger(__name__)


async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the alarm control panel platform."""

devices = []

session: SHCSession = hass.data[DOMAIN][config_entry.entry_id][DATA_SESSION]
Expand All @@ -44,6 +42,7 @@ class IntrusionSystemAlarmControlPanel(AlarmControlPanelEntity):
"""Representation of SHC intrusion detection control."""

def __init__(self, device: SHCIntrusionSystem, parent_id: str, entry_id: str):
"""Initialize the intrusion detection control."""
self._device = device
self._parent_id = parent_id
self._entry_id = entry_id
Expand Down Expand Up @@ -139,7 +138,7 @@ def supported_features(self):

@property
def manufacturer(self):
"""The manufacturer of the device."""
"""Return manufacturer of the device."""
return self._device.manufacturer

@property
Expand Down
1 change: 0 additions & 1 deletion custom_components/bosch_shc/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the SHC climate platform."""

entities = []
session: SHCSession = hass.data[DOMAIN][config_entry.entry_id][DATA_SESSION]

Expand Down
1 change: 0 additions & 1 deletion custom_components/bosch_shc/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the SHC cover platform."""

entities = []
session: SHCSession = hass.data[DOMAIN][config_entry.entry_id][DATA_SESSION]

Expand Down
1 change: 0 additions & 1 deletion custom_components/bosch_shc/device_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ async def async_attach_trigger(
automation_info: dict,
) -> CALLBACK_TYPE:
"""Attach a trigger."""

event_config = None

config = TRIGGER_SCHEMA(config)
Expand Down
1 change: 0 additions & 1 deletion custom_components/bosch_shc/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def color_temp(self):

def turn_on(self, **kwargs):
"""Turn the light on."""

hs_color = kwargs.get(ATTR_HS_COLOR)
color_temp = kwargs.get(ATTR_COLOR_TEMP)
brightness = kwargs.get(ATTR_BRIGHTNESS)
Expand Down
1 change: 0 additions & 1 deletion custom_components/bosch_shc/logbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def async_describe_events(hass, async_describe_event):
@callback
def async_describe_bosch_shc_event(event):
"""Describe bosch_shc.click logbook event."""

device_name = event.data[ATTR_NAME]
event_subtype = event.data[ATTR_EVENT_SUBTYPE]
event_type = event.data[ATTR_EVENT_TYPE]
Expand Down
1 change: 0 additions & 1 deletion custom_components/bosch_shc/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the SHC switch platform."""

entities = []
session: SHCSession = hass.data[DOMAIN][config_entry.entry_id][DATA_SESSION]

Expand Down

0 comments on commit 8c9deff

Please sign in to comment.