Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Add Support for more Garage door operators and modernize code #29

Merged
merged 17 commits into from
Mar 8, 2023
Merged

Conversation

Taraman17
Copy link
Contributor

Main lint points I've addressed:

  • from homeassistant.core import HomeAssistant I.S.O import homeassistant
  • replace deprecated Entity Feature imports
  • No if/elif in case of multiple return statements
  • use internal "list" element I.S.O typing.List

It is a larger pull request this time, but it should bring the code to a stand where it is set up for the future.
Hope you can spare the time to check.

Taraman17 and others added 17 commits March 1, 2023 18:49
'typing.List' is deprecated, use 'list' instead
pylint(deprecated-typing-alias)
In binary_sensor.py the import of "const" was with an improper path.
There are garage operators, that have a position attribute which is not editable. In that case, they show position, but can not be operated by set_position.

Also tackle some deprecation notices.
Adding all Impulse type switching attributes from pymee, to discover more switches on devices.
Naming changed, so that special impulses always get named by their type..

tackled some deprecation messages.
If a sensor neither has a name nor a device class, name it after it's AttributeType string
@Taraman17
Copy link
Contributor Author

Closes #26

@FreshlyBrewedCode
Copy link
Owner

Thanks!

@FreshlyBrewedCode FreshlyBrewedCode merged commit 3865dc4 into FreshlyBrewedCode:master Mar 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants