-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for 527K - Dyson Pure Hot+Cool Formaldehyde
- Loading branch information
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
"""Dyson Pure Hot+Cool device.""" | ||
|
||
from typing import Optional | ||
|
||
from .dyson_device import DysonHeatingDevice | ||
from .dyson_pure_cool import DysonPureCool | ||
|
||
|
||
class DysonPureHotCool(DysonPureCool, DysonHeatingDevice): | ||
"""Dyson Pure Hot+Cool device.""" | ||
|
||
class DysonPureHotCoolFormaldehyde(DysonPureHotCool): | ||
"""Dyson Pure Hot+Cool Formaldehyde device.""" | ||
|
||
@property | ||
def formaldehyde(self) -> Optional[int]: | ||
"""Return formaldehyde reading.""" | ||
return self._get_environmental_field_value("hcho") |