Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Use init_subclass for Config Entries #26059
I learned something new today and it looks like it can make our code slightly more readable.
I learned about
This callback can receive keyword arguments by passing them to the inheritance part. This allows us to register config flows without decorating them!
class MetFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
For this PR I updated Hue and Met to use this new approach.
If the code does not interact with devices: