thomasloven / hass-browser_mod

🔹 A Home Assistant integration to turn your browser into a controllable entity and media player
MIT License
1.27k stars 182 forks source link

Detected that custom integration 'browser_mod' accesses hass.components.frontend #690

Open holdestmade opened 5 months ago

holdestmade commented 5 months ago

My Home Assistant version: 2024.3.0b5

Error messages from the browser console:

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:156
First occurred: 4:14:27 pm (1 occurrences)
Last logged: 4:14:27 pm

Detected that custom integration 'browser_mod' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/browser_mod/mod_view.py, line 24: hass.components.frontend.async_register_built_in_panel(, please report it to the author of the 'browser_mod' custom integration

By replacing the space in the checkboxes ([ ]) with an X below, I indicate that I:

pejotigrek commented 5 months ago

I can confirm that in stable 2024.3.0 the problem is also visible in log:

2024-03-07 00:42:30.798 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'browser_mod' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/browser_mod/mod_view.py, line 24: hass.components.frontend.async_register_built_in_panel(, please report it to the author of the 'browser_mod' custom integration
DaN66O commented 5 months ago

I also confirm this

RalfLuig commented 5 months ago

I see the same Problem

Destroyer061090 commented 5 months ago

same warning

IntExCZ commented 3 months ago

Fixed by pull request: https://github.com/thomasloven/hass-browser_mod/pull/705

foxsam21 commented 3 months ago

does that also fix this (hass.helpers.storage) warning?

Detected that custom integration 'browser_mod' accesses hass.helpers.storage. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from storage directly at custom_components/browser_mod/store.py, line 94: self.store = hass.helpers.storage.Store(STORAGE_VERSION, STORAGE_KEY), please report it to the author of the 'browser_mod' custom integration
IntExCZ commented 3 months ago

does that also fix this (hass.helpers.storage) warning?

Detected that custom integration 'browser_mod' accesses hass.helpers.storage. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from storage directly at custom_components/browser_mod/store.py, line 94: self.store = hass.helpers.storage.Store(STORAGE_VERSION, STORAGE_KEY), please report it to the author of the 'browser_mod' custom integration

No, but another fix will...

IntExCZ commented 3 months ago

does that also fix this (hass.helpers.storage) warning?

Detected that custom integration 'browser_mod' accesses hass.helpers.storage. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from storage directly at custom_components/browser_mod/store.py, line 94: self.store = hass.helpers.storage.Store(STORAGE_VERSION, STORAGE_KEY), please report it to the author of the 'browser_mod' custom integration

How can be this warning message reproduced? What is the version of HA?

foxsam21 commented 3 months ago
Detected that custom integration 'browser_mod' accesses hass.helpers.storage. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from storage directly at custom_components/browser_mod/store.py, line 94: self.store = hass.helpers.storage.Store(STORAGE_VERSION, STORAGE_KEY), please report it to the author of the 'browser_mod' custom integration

How can be this warning message reproduced? What is the version of HA?

2024.5.2 not sure on how to reproduce, I don't know what is causing it. for me its in the logs whenever i restart HA.

IntExCZ commented 3 months ago

@foxsam21 I am, for fail-safe reasons, one major version back (2024.4.4) so when I upgrade to 2024.5.2+ (when the 2024.6.0 releases), I will try to fix that ASAP.

IntExCZ commented 2 months ago

does that also fix this (hass.helpers.storage) warning?

Detected that custom integration 'browser_mod' accesses hass.helpers.storage. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from storage directly at custom_components/browser_mod/store.py, line 94: self.store = hass.helpers.storage.Store(STORAGE_VERSION, STORAGE_KEY), please report it to the author of the 'browser_mod' custom integration

@foxsam21 Fixed by pull request: https://github.com/thomasloven/hass-browser_mod/pull/710

IntExCZ commented 2 months ago
Entity None (<class 'custom_components.browser_mod.media_player.BrowserModPlayer'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <MediaPlayerEntityFeature.PAUSE|SEEK|VOLUME_SET|VOLUME_MUTE|TURN_ON|TURN_OFF|PLAY_MEDIA|STOP|PLAY|BROWSE_MEDIA: 152463>, please report it to the author of the 'browser_mod' custom integration and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

Fixed by pull request: https://github.com/thomasloven/hass-browser_mod/pull/711