ソースを参照

chore: fix lint errors flagged by ruff 0.16 (#551)

J. Nick Koston 3 日 前
コミット
d9cb972ecc
2 ファイル変更1 行追加4 行削除
  1. 0 4
      switchbot/__init__.py
  2. 1 0
      tests/test_meter_pro.py

+ 0 - 4
switchbot/__init__.py

@@ -95,7 +95,6 @@ __all__ = [
     "StripLightColorMode",
     "SwitchBotAdvertisement",
     "Switchbot",
-    "Switchbot",
     "SwitchbotAccountConnectionError",
     "SwitchbotAirPurifier",
     "SwitchbotApiError",
@@ -118,11 +117,9 @@ __all__ = [
     "SwitchbotLock",
     "SwitchbotMeterProCO2",
     "SwitchbotModel",
-    "SwitchbotModel",
     "SwitchbotOperationError",
     "SwitchbotPermanentOutdoorLight",
     "SwitchbotPlugMini",
-    "SwitchbotPlugMini",
     "SwitchbotRelaySwitch",
     "SwitchbotRelaySwitch2PM",
     "SwitchbotRgbicLight",
@@ -133,7 +130,6 @@ __all__ = [
     "SwitchbotStandingFan",
     "SwitchbotStripLight3",
     "SwitchbotSupportedType",
-    "SwitchbotSupportedType",
     "SwitchbotVacuum",
     "VerticalOscillationAngle",
     "close_stale_connections",

+ 1 - 0
tests/test_meter_pro.py

@@ -181,6 +181,7 @@ async def test_get_datetime_wrong_response():
     ],
 )
 async def test_set_datetime(  # noqa: PLR0913
+    *,
     timestamp: int,
     utc_offset_hours: int,
     utc_offset_minutes: int,