#Matrix refactor

1 messages ยท Page 1 of 1 (latest)

fiery cargo
#

thats a good plan! Depending on how the integration is set up it may be straight forward or it may be a huge mess ๐Ÿคฃ
Is this integration already ConfigFlow configured or still yaml?

#

Matrix

#

Matrix refactor

snow basin
#

yaml-only right now, which did personally annoy me when I first tried setting it up

#

Definitely another thing I'd like to (eventually) try to modernize

fiery cargo
#

You can't change anything regarding the yaml config - it wouldn't be accepted. You may only deprecate it (I think 2 month) and add a ConfigFlow if you like to change config things...

#

It may be a good idea to do that upfront, but again, it depends

snow basin
#

But really, the biggest things are the fact that the old library doesn't support threaded messages, replies, or other modern features that matrix as a protocol has gone forward with. The old library's github (https://github.com/matrix-org/matrix-python-sdk) even says:

We strongly recommend using the matrix-nio library rather than this sdk. It is both more featureful and more actively maintained.

snow basin
#

So if yaml is the only configuration method for now, so be it ๐Ÿคท๐Ÿพโ€โ™‚๏ธ

fiery cargo
snow basin
#

Thankfully the items needed from the yaml config are all definitely still needed, and it shouldn't require anything new at all

fiery cargo
#

are you codeowner of the current integration?

snow basin
#

Basic stuff like user/pass/homeserver

#

Not at all; current codeowner is @tinloaf

#

Who appears to be in this server, too ๐Ÿค”

Hi @waxen moon!

#

I don't mean to bother anyone prematurely with all of this, this is definitely something I'd rather have an implementation of first before I hash things out with reviewers/etc, but I'm absolutely happy to discuss my overall goals/ideas for the integration!

My dms are open, and I can DM you my matrix id if preferred ๐Ÿ™‚

fiery cargo
#

did you already contribute to HA?

snow basin
#

Nope! This'd be my first time ๐Ÿ™‚
I've debugged a few HACS add-ons before, though, if that counts for anything ๐Ÿคท๐Ÿพโ€โ™‚๏ธ

fiery cargo
#

Great ๐Ÿ‘

#

Just be aware that CI runs have to be started by a member until you are marked "Contributor".

snow basin
#

Gotcha; by default I'll try to reach out to tinloaf for help with that, but if he turns out to be unavailable for some reason, what'd be my best way forward from there? I'm guessing getting some help from here/github?

fiery cargo
#

TLDR: adding tests and type annotations is very appreciated

snow basin
#

I definitely love tests and type annotations ๐Ÿ˜

#

This was all really helpful, thank you again! It's been encouraging

fiery cargo
#

Great! Feel free to ping me for a quick CI start when you are ready.