Skip to content

Commit

Permalink
Fix typing mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
cereal2nd committed Dec 12, 2024
1 parent 1e1b50f commit c2fd858
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions velbusaio/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,22 @@
import serial
import serial_asyncio_fast

from velbusaio.channels import Channel
from velbusaio.channels import (
Blind,
Button,
ButtonCounter,
Channel,
Dimmer,
EdgeLit,
LightSensor,
Memo,
Relay,
SelectedProgram,
Sensor,
SensorNumber,
Temperature,
ThermostatChannel,
)
from velbusaio.exceptions import VelbusConnectionFailed
from velbusaio.handler import PacketHandler
from velbusaio.helpers import get_cache_dir
Expand Down Expand Up @@ -203,7 +218,23 @@ async def send(self, msg: Message) -> None:
)
)

def get_all(self, class_name: str) -> list[Channel]:
def get_all(
self, class_name: str
) -> list[
Blind
| Button
| ButtonCounter
| Sensor
| ThermostatChannel
| Dimmer
| Temperature
| SensorNumber
| LightSensor
| Relay
| EdgeLit
| Memo
| SelectedProgram
]:
"""Get all channels."""
lst = []
for addr, mod in (self.get_modules()).items():
Expand Down

0 comments on commit c2fd858

Please sign in to comment.