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

Update develop branch to master #16

Merged
merged 36 commits into from
Jun 5, 2024
Merged

Update develop branch to master #16

merged 36 commits into from
Jun 5, 2024

Conversation

Taraman17
Copy link
Collaborator

Update to latest version to test repo rights.

actions-user and others added 30 commits February 4, 2021 23:49
Automatically generated by python-semantic-release
Automatically generated by python-semantic-release
Automatically generated by python-semantic-release
Automatically generated by python-semantic-release
Automatically generated by python-semantic-release
- Update const.py
- Add AttributeTypes above 324
- Count up Version number
- v1.5.5 add attributes
- Add more constants
- Added constants found in https://github.com/stfnhmplr/homee-api/blob/main/lib/enums.js
- revert version number - will be done automatically
- revert version 1.5.5. change - will be done automatically.
Automatically generated by python-semantic-release
This changes logging, so it uses a logger with (__name__), so logs can be identified easier.

This also will enable log configuration in Home Assistant.
Automatically generated by python-semantic-release
Automatically generated by python-semantic-release
Homee Attributes can have options, that will be exposed with this patch.
Options that are not present will have empty values.
Automatically generated by python-semantic-release
Automatically generated by python-semantic-release
* add function to get an update for an attribute

* Change get_attribute to update_attribute and add update_node
Automatically generated by python-semantic-release
Automatically generated by python-semantic-release
* add function to get an update for an attribute

* Change get_attribute to update_attribute and add update_node

* Fix invalid state error

* Add manual update functions to readme
Automatically generated by python-semantic-release
* add function to get an update for an attribute

* Change get_attribute to update_attribute and add update_node

* Fix invalid state error

* Add manual update functions to readme

* fix list object is not an iterator

* unquote homee_name

closes #7
Automatically generated by python-semantic-release
Taraman17 and others added 6 commits February 1, 2024 00:07
* Remove expicit ping

Removing the ping-handler function and it's call, since websockets sends pings automatically and the function was causing async_io errors.

* Refine error handling and logging

Narrrow websocket exception hadnling to "ConnectionClosedError" from "ConnectionClosed" where feasible.
some logging changes

* expose attribute_map

Expose _attribute_map as public property, since it is used in hass-homee

* Tackle deprecations and lint warnings

- Replace typing.List with list
- remove unnecessary else:s
- use Callable from collections.abc

* refine logging

- log disconnect and reconnect once as per https://developers.home-assistant.io/docs/integration_quality_scale_index/
- use %s instead of f-strings in Log-statements as per HA style guide: https://developers.home-assistant.io/docs/development_guidelines/#use-new-style-string-formatting

* fix typo

* fix some nits

- make sure disconnect warning is only logged once.
- move logging of reconnect attempts to proper location.
Automatically generated by python-semantic-release
* Remove expicit ping

Removing the ping-handler function and it's call, since websockets sends pings automatically and the function was causing async_io errors.

* Refine error handling and logging

Narrrow websocket exception hadnling to "ConnectionClosedError" from "ConnectionClosed" where feasible.
some logging changes

* expose attribute_map

Expose _attribute_map as public property, since it is used in hass-homee

* Tackle deprecations and lint warnings

- Replace typing.List with list
- remove unnecessary else:s
- use Callable from collections.abc

* refine logging

- log disconnect and reconnect once as per https://developers.home-assistant.io/docs/integration_quality_scale_index/
- use %s instead of f-strings in Log-statements as per HA style guide: https://developers.home-assistant.io/docs/development_guidelines/#use-new-style-string-formatting

* fix typo

* fix some nits

- make sure disconnect warning is only logged once.
- move logging of reconnect attempts to proper location.

* Deal with attributes without options

If trying to access options if the attribute has none leads to an error.
This fixes it.

* Now really deal with empty options

First attempt had a wrong idea.
Automatically generated by python-semantic-release
* Remove expicit ping

Removing the ping-handler function and it's call, since websockets sends pings automatically and the function was causing async_io errors.

* Refine error handling and logging

Narrrow websocket exception hadnling to "ConnectionClosedError" from "ConnectionClosed" where feasible.
some logging changes

* expose attribute_map

Expose _attribute_map as public property, since it is used in hass-homee

* Tackle deprecations and lint warnings

- Replace typing.List with list
- remove unnecessary else:s
- use Callable from collections.abc

* refine logging

- log disconnect and reconnect once as per https://developers.home-assistant.io/docs/integration_quality_scale_index/
- use %s instead of f-strings in Log-statements as per HA style guide: https://developers.home-assistant.io/docs/development_guidelines/#use-new-style-string-formatting

* fix typo

* fix some nits

- make sure disconnect warning is only logged once.
- move logging of reconnect attempts to proper location.

* Deal with attributes without options

If trying to access options if the attribute has none leads to an error.
This fixes it.

* Now really deal with empty options

First attempt had a wrong idea.

* Add catch for OS ConnectionError

If a connection error throws at  OS Level (e.g. 113 -  No route to host), it was not caught.
Automatically generated by python-semantic-release
@Taraman17 Taraman17 merged commit d53726d into develop Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants