| ▲ | balloob 4 hours ago | ||||||||||||||||
Home Assistant [1] has been written using web components and it has been great. In 13 years that we've been around, we never had to do a full rewrite of the frontend but always have been able to gradually update components as needed. Not being tied to the JavaScript industry upgrade cycle (which is short!), has allowed us to pick our own priorities. We currently use Lit for the framework on top (you do need one, that's fine). For state management we just pass props around, works great and allows community to easily develop custom cards that can plug into our frontend. The downside is lack of available components. Although we're not tied to a single framework, and can pick any web component framework, the choices are somewhat limited. We're currently on material components and migrating some to Shoelace. I talked more about our approach to frontend last year at the Syntax podcast[2]. [1] https://www.home-assistant.io [2] https://syntax.fm/show/880/creator-of-home-assistant-web-com... | |||||||||||||||||
| ▲ | bflesch 5 minutes ago | parent | next [-] | ||||||||||||||||
> Home Assistant [1] has been written using web components and it has been great. That could explain why the percentage slider is not showing a current value tooltip when sliding it :P | |||||||||||||||||
| ▲ | zackify 2 hours ago | parent | prev | next [-] | ||||||||||||||||
The cycle isn't short like people continue to say each year. I use react since 2014 and it hasn't changed much in 6-7 years. I just built a script tag based reusable library for our company with react as the only dependency and thanks to stuff like shadow Dom and dialogs I get a much higher quality dev experience than plain js. | |||||||||||||||||
| |||||||||||||||||
| ▲ | shafyy 4 hours ago | parent | prev [-] | ||||||||||||||||
Hey, cool to see you here on HN. I was recently looking through your codebase to see how you handle automations. It looks like you are relying on asyncio? I was wondering how you came to this decision and if you ever considered alternatives like a APScheduler or any other job library? | |||||||||||||||||