Skip to content

Commit

Permalink
chore(lint): [pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 24, 2024
1 parent dcca39f commit 94ed399
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion utils/measure/measure/powermeter/kasa.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, device_ip: str) -> None:
self._smartplug = SmartPlug(device_ip)

def get_power(self, include_voltage: bool = False) -> PowerMeasurementResult:
"""Get a new power reading from the Kasa device. Optionally include voltage (FIXME: not yet implemented).""" # noqa: FIX001
"""Get a new power reading from the Kasa device. Optionally include voltage (FIXME: not yet implemented)."""
if include_voltage:
# FIXME: Not yet implemented
raise UnsupportedFeatureError("Voltage measurement is not yet implemented for Kasa devices.")
Expand Down
2 changes: 1 addition & 1 deletion utils/measure/measure/powermeter/mystrom.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, device_ip: str) -> None:
self._device_ip = device_ip

def get_power(self, include_voltage: bool = False) -> PowerMeasurementResult:
"""Get a new power reading from the MyStrom device. Optionally include voltage (FIXME: not yet implemented).""" # noqa: FIX001
"""Get a new power reading from the MyStrom device. Optionally include voltage (FIXME: not yet implemented)."""
if include_voltage:
# FIXME: Not yet implemented
raise UnsupportedFeatureError("Voltage measurement is not yet implemented for MyStrom devices.")
Expand Down
2 changes: 1 addition & 1 deletion utils/measure/measure/powermeter/tasmota.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, device_ip: str) -> None:
self._device_ip = device_ip

def get_power(self, include_voltage: bool = False) -> PowerMeasurementResult:
"""Get a new power reading from the Tasmota device. Optionally include voltage (FIXME: not yet implemented).""" # noqa: FIX001
"""Get a new power reading from the Tasmota device. Optionally include voltage (FIXME: not yet implemented)."""
if include_voltage:
# FIXME: Not yet implemented
raise UnsupportedFeatureError("Voltage measurement is not yet implemented for Tasmota devices.")
Expand Down
2 changes: 1 addition & 1 deletion utils/measure/measure/powermeter/tuya.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(
self._device_version = device_version

def get_power(self, include_voltage: bool = False) -> PowerMeasurementResult:
"""Get a new power reading from the Tuya device. Optionally include voltage (FIXME: not yet implemented).""" # noqa: FIX001
"""Get a new power reading from the Tuya device. Optionally include voltage (FIXME: not yet implemented)."""
if include_voltage:
# FIXME: Not yet implemented
raise UnsupportedFeatureError("Voltage measurement is not yet implemented for Tuya devices.")
Expand Down

0 comments on commit 94ed399

Please sign in to comment.