| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| """Module for Fan Interface.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from abc import ABC, abstractmethod | ||
|
|
||
|
|
||
| class Fan(ABC): | ||
| """Interface for a Fan.""" | ||
|
|
||
| @property | ||
| @abstractmethod | ||
| def is_fan(self) -> bool: | ||
| """Return True if the device is a fan.""" | ||
|
|
||
| @property | ||
| @abstractmethod | ||
| def fan_speed_level(self) -> int: | ||
| """Return fan speed level.""" | ||
|
|
||
| @abstractmethod | ||
| async def set_fan_speed_level(self, level: int): | ||
| """Set fan speed level.""" |
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.