Skip to content

Commit

Permalink
Merge pull request #15 from gdgib/merge-from-upstream
Browse files Browse the repository at this point in the history
Merge from upstream
  • Loading branch information
gdgib committed Apr 4, 2024
2 parents e3a05c8 + c8e211d commit 636eb82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@

# **Important message**
>
> Unfortunately, I no longer have time to maintain this repo.
> @micahqcade was kind enough to offer to take over. His fork is now the reference you should install and update from!
> Cheers to you all.
>
> https://github.com/micahqcade/custom_vesync
>
> This a fork of the existing archived project created by vlebourl. Please contribute here.
[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/custom-components/hacs)
[![GitHub release](https://img.shields.io/github/v/release/vlebourl/custom_vesync.svg)](https://github.com/vlebourl/custom_vesync/releases/)
Expand Down
7 changes: 5 additions & 2 deletions custom_components/vesync/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,18 @@ def __init__(self, humidifier, coordinator) -> None:
def entity_category(self):
"""Return the configuration entity category."""
return EntityCategory.CONFIG

def is_on_safe(self, keys):
"""Return True if the given property is on."""
for key in keys:
if key in self.device.details.keys():
return self.device.details[key]
_LOGGER.error(f'Keys "{keys}" keys are not present in details "{self.device.details}" for "{super().name}"!')
_LOGGER.error(
f'Keys "{keys}" keys are not present in details "{self.device.details}" for "{super().name}"!'
)
return "unavailable"


class VeSyncFanChildLockHA(VeSyncSwitchEntity):
"""Representation of the child lock switch."""

Expand Down

0 comments on commit 636eb82

Please sign in to comment.