Releases: andrejs2/arso_potresi
Release Notes - Version 1.2.2
Release Notes - v1.2.2
This is a significant feature and stability release that completely overhauls how earthquake data is presented and adds a much-requested map visualization feature.
Highlights
- Earthquake on the Map! 🗺️ A new, dedicated map sensor (
sensor.zadnji_potres_magnituda) is now available. When used with the standard Home Assistantmapcard, it will display the location of the latest earthquake with its magnitude directly inside the map marker. - Rich, Structured Attributes: The main sensor (
sensor.arso_potresi) now provides a wealth of information. The attributes have been redesigned to show a full, detailed list for both the most recent and all historical earthquakes within your selected time frame. - Improved Performance: The integration has been refactored to use a
DataUpdateCoordinator. This means it now makes only a single API call to ARSO per update cycle, reducing redundant requests and improving the efficiency of your Home Assistant instance.
🗺️ Displaying the Earthquake on a Map
To get the new map visualization, add a standard map card to your Lovelace dashboard with the following configuration:
type: map
entities:
- entity: sensor.zadnji_potres_magnituda
label_mode: stateDetailed Changelog
- Added:
- New sensor
sensor.zadnji_potres_magnitudadedicated to map visualization. Its state is the magnitude, and it includeslatitudeandlongitudeas attributes.
- New sensor
- Changed:
- Main Sensor Overhaul: The attributes for
sensor.arso_potresihave been greatly enhanced to provide a full, structured list of details (time, location, depth, intensity, etc.) for both the latest and historical earthquakes. - Code Refactoring: The integration now uses a central
DataUpdateCoordinatorfor more efficient API data fetching.
- Main Sensor Overhaul: The attributes for
- Removed:
- The non-functional and deprecated
geolocationplatform approach has been removed in favor of the more robust and standard sensor-with-location-attributes solution.
- The non-functional and deprecated
Release Notes - Version 1.2.1
Release Notes v1.2.1
Key Fixes:
Improved Stability and Reconfiguration
We have fixed the error that prevented the changing of settings, such as scan_interval and history_days, after the initial installation. The integration is now more stable and allows for seamless reconfiguration through the Home Assistant UI.
Compliance with Home Assistant
The code has been corrected to be fully compliant with the latest Home Assistant development standards. This includes resolving deprecation warnings and fixing errors during the unloading of the integration.
We hope you will now enjoy a more stable and reliable experience with the ARSO Potresi integration!
Release Notes - Version 1.2.0
What's Changed
Full Changelog: v1.1.2...v1.2.0
Opombe k izdaji 1.2.0
Z veseljem sporočamo posodobitev integracije ARSO Potresi! Nova različica prinaša pomembne izboljšave, ki vam omogočajo večjo prilagodljivost in boljšo sledljivost zgodovine potresov.
Kaj je novega?
🔄 Možnost rekonfiguracije
Po novem lahko nastavitve integracije spremenite neposredno v Home Assistant uporabniškem vmesniku (UI). Ni vam več treba brisati in ponovno dodajati integracije, če želite spremeniti interval osveževanja ali dolžino zgodovine. Preprosto pojdite na Nastavitve > Naprave in storitve > Integracije, poiščite ARSO Potresi in kliknite na gumb Nastavi.
🗓️ Zgodovina potresov
Dodana je nova konfiguracijska možnost, kjer lahko določite število dni, za katere želite shranjevati zgodovino potresov. Senzor zdaj samodejno filtrira in v atribut Zgodovina potresov shranjuje seznam potresov znotraj izbranega časovnega obdobja, kar je popolno za prikaz v karticah Lovelace.
✅ Izboljšana sledljivost
Koda integracije je posodobljena, da ustvarja bogatejši atribut z zgodovino potresov. To omogoča enostaven prikaz več podrobnosti o preteklih potresih v eni sami kartici Markdown.
Upamo, da vam bodo te izboljšave koristile! Če imate kakršna koli vprašanja, se obrnite na podporo.
Release 1.1.2
New release contaning only 1 change in hacs.json file - add country [SI]
Release Notes - Version 1.1.1
Update hacs.json to downgrade homeassistant minimum version to 2024.3.0
Release Notes - Version 1.1.0
Release Notes
Version 1.1.0
Changes
-
Deprecated call removal
- Replaced
async_forward_entry_setup(config_entry, "sensor")with the newasync_forward_entry_setups(config_entry, ["sensor"])in__init__.py. - Removed any usage of
hass.async_create_task()when forwarding the config entry, ensuring weawaitthe calls directly.
- Replaced
-
Imports & Type Hints
- Added missing imports for
HomeAssistantandConfigEntryfrom the Home Assistant core modules to avoidNameErrorexceptions. - Updated function signatures with
async_add_entities: AddEntitiesCallbackwhere appropriate.
- Added missing imports for
-
Improved Compatibility
- Adjusted the integration to align with Home Assistant’s current async patterns, avoiding warnings related to event loop usage and ensuring future compatibility (especially ahead of HA 2025.x deprecations).
Notes
- This release resolves the warning:
"Detected code that calls async_forward_entry_setup for integration 'arso_potresi' … which is deprecated, await async_forward_entry_setups instead."
- If you have been seeing
NameError: name 'HomeAssistant' is not definedor deprecation logs regarding async setup, these changes should now address them.
Upgrading
- Simply replace the old
arso_potresicustom component folder with the updated version and restart Home Assistant. - No breaking configuration changes are introduced in this release.
Thank you for using ARSO Potresi! If you encounter any further issues or have feature requests, feel free to open a new issue on GitHub.