Skip to content
New issue

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

Merge from upstream #15

Merged
merged 5 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading