Skip to content

Support Home Assistant 2025.8+ — pass hass to IntegrationSensor and update __init__/entity creation - #51

Merged
wilds merged 1 commit into
wilds:masterfrom
FrancescoFdd5:patch-1
Aug 14, 2025
Merged

wilds merged 1 commit into
wilds:masterfrom
FrancescoFdd5:patch-1

Conversation

@FrancescoFdd5

Copy link
Copy Markdown
Contributor

Starting from Home Assistant 2025.8, the core IntegrationSensor constructor requires the hass instance as a positional argument. The current component calls IntegrationSensor.init(...) without hass, which prevents the platform from setting up on 2025.8+.

Adds hass to the AtonStorageIntegrationSensor.init signature (first parameter).

Passes hass to super().init (the core IntegrationSensor).

Updates all instantiations of AtonStorageIntegrationSensor(...) to provide hass as the first argument.

…update __init__/entity creation

Starting from Home Assistant 2025.8, the core IntegrationSensor constructor requires the hass instance as a positional argument. The current component calls IntegrationSensor.__init__(...) without hass, which prevents the platform from setting up on 2025.8+.

Adds hass to the AtonStorageIntegrationSensor.__init__ signature (first parameter).

Passes hass to super().__init__ (the core IntegrationSensor).

Updates all instantiations of AtonStorageIntegrationSensor(...) to provide hass as the first argument.
@Majikmonke

Copy link
Copy Markdown

Do I need to alter something to fix this? Mine still isn't working.

@FrancescoFdd5

Copy link
Copy Markdown
Contributor Author

you have to do the same change of my pull request and then restart HA

@Majikmonke

Copy link
Copy Markdown

you have to do the same change of my pull request and then restart HA

Where would I change the pull request?

@geniodelmale

Copy link
Copy Markdown

I integrated Francesco's pull request here, you can remove the original one and use mine while it's updated: https://github.com/geniodelmale/hass-atonstorage

@barryw6588

Copy link
Copy Markdown

When will the HACS ATON integration be updated with these changes? Newbie not sure about editting anything. Thanks

@wilds
wilds merged commit 46317a7 into wilds:master Aug 14, 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.

5 participants