Skip to content

Commit

Permalink
Linting the code
Browse files Browse the repository at this point in the history
  • Loading branch information
briis committed Jan 5, 2024
1 parent 3640cca commit 128180f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion custom_components/securityspy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""SecuritySpy Platform."""
from __future__ import annotations

import asyncio
import logging

from aiohttp.client_exceptions import ServerDisconnectedError
Expand Down
4 changes: 2 additions & 2 deletions custom_components/securityspy/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" This component provides binary sensors for SecuritySpy."""
"""This component provides binary sensors for SecuritySpy."""
from __future__ import annotations

from dataclasses import dataclass
Expand Down Expand Up @@ -57,7 +57,7 @@ class SecSpyBinaryEntityDescription(
async def async_setup_entry(
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
) -> None:
"""Setup Binary Sensors."""
"""SecuritySpy Binary Sensor Platform."""
entry_data = hass.data[DOMAIN][entry.entry_id]
secspy_object = entry_data["nvr"]
secspy_data = entry_data["secspy_data"]
Expand Down
2 changes: 1 addition & 1 deletion custom_components/securityspy/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
async def async_setup_entry(
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
) -> None:
"""Setup Binary Sensors."""
"""SecuritySpy Button Platform."""
entry_data = hass.data[DOMAIN][entry.entry_id]
secspy_object = entry_data["nvr"]
secspy_data = entry_data["secspy_data"]
Expand Down
2 changes: 1 addition & 1 deletion custom_components/securityspy/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Constant definitions for SecuritySpy Integration."""
"""Constant definitions for SecuritySpy Integration."""
import voluptuous as vol
from homeassistant.helpers import config_validation as cv
from homeassistant.const import (
Expand Down
4 changes: 2 additions & 2 deletions custom_components/securityspy/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" This component provides Sensors for SecuritySpy."""
"""This component provides Sensors for SecuritySpy."""
from __future__ import annotations

from dataclasses import dataclass
Expand Down Expand Up @@ -64,7 +64,7 @@ class SecuritySpyEntityDescription(SecSpyRequiredKeysMixin, SensorEntityDescript
async def async_setup_entry(
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
) -> None:
"""A SecsuritySpy Sensor."""
"""SecuritySpy Sensor Platform."""
entry_data = hass.data[DOMAIN][entry.entry_id]
secspy_object = entry_data["nvr"]
secspy_data = entry_data["secspy_data"]
Expand Down
4 changes: 2 additions & 2 deletions custom_components/securityspy/switch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" This component provides Switches for SecuritySpy."""
"""This component provides Switches for SecuritySpy."""
from __future__ import annotations

import logging
Expand Down Expand Up @@ -51,7 +51,7 @@ class SecSpyBinarySwitchDescription(SecSpyRequiredKeysMixin, SwitchEntityDescrip
async def async_setup_entry(
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
) -> None:
"""A SecsuritySpy Switch."""
"""SecuritySpy Switch Platform."""
entry_data = hass.data[DOMAIN][entry.entry_id]
secspy_object = entry_data["nvr"]
secspy_data = entry_data["secspy_data"]
Expand Down

0 comments on commit 128180f

Please sign in to comment.