Skip to content

Added backward compatibility in the websocket branch#236

Merged
ic-dev21 merged 27 commits intodvd-dev:mainfrom
fersingb:Websocket
Feb 4, 2025
Merged

Added backward compatibility in the websocket branch#236
ic-dev21 merged 27 commits intodvd-dev:mainfrom
fersingb:Websocket

Conversation

@fersingb
Copy link
Collaborator

@fersingb fersingb commented Feb 4, 2025

The changes add backward compatibility to the code, allowing a smooth transition to the new challenges websocket. The lib can be used by versions of Hilo for HA that are not yet updated to the newer websocket code.

ic-dev21 and others added 27 commits February 4, 2025 08:12
Ça marche pas encore tout à fait... j'arrive à avoir l'URL du devicehub mais pas du challengehub je comprends pas pourquoi.

Si quelqu'un veut s'éssayer avec ça
J'arrive à la négociation du challengehub, chose qui ne se produisait pas avant, merci à @Leicas pour la suggestion.

J'ai sorti le token du if pour y avoir accès dans la fonction au complet.

Ça marche toujours pas, mais je pense que c'est un pas dans la bonne direction
Respect Black, remove unused imports
This reverts commit 465e2ff.
revenu à full_ws_url pour garder le même nom que le code original
Il y avait un string literal donc websocket ne se faisait pas remplir, websocket2 oui.

Retrait et modification de quelques commentaires
Le post se fait maintenant dans websocket.py, dead code
Adding typing to WebsocketManager class.

type : ignore sur la ligne 504 je comprends pas pourquoi le linter chiale.
Initialize values.
Pour faire changement
Renommé pour être plus facile à suivre.
Clarifier un peu
Pour troubleshooting futur
Dans util, ajout de logique moins naïve sur le traitement des timezone, causait du trouble en websocket.
…ition to the new websocket for challenges without breaking the current HA Hilo code
@ic-dev21 ic-dev21 changed the base branch from main to WebsocketManagerClass February 4, 2025 15:47
@ic-dev21 ic-dev21 force-pushed the WebsocketManagerClass branch from d148158 to 62d3536 Compare February 4, 2025 16:01
@ic-dev21 ic-dev21 changed the base branch from WebsocketManagerClass to main February 4, 2025 16:07
@ic-dev21 ic-dev21 merged commit 2281a37 into dvd-dev:main Feb 4, 2025
1 check failed
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.

3 participants