Skip to content

Commit

Permalink
Merge pull request #14 from caiosweet/dev
Browse files Browse the repository at this point in the history
Bump georss-ingv-centro-nazionale-terremoti-client v0.5
changed entity properties to class attributes.
  • Loading branch information
caiosweet authored Jun 8, 2021
2 parents 68d2670 + fe9226a commit 1e40590
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions custom_components/ingv_centro_nazionale_terremoti/geo_location.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ def _remove_entity(self, external_id):
class IngvCentroNazionaleTerremotiLocationEvent(GeolocationEvent):
"""This represents an external event with INGV Centro Nazionale Terremoti feed data."""

_attr_unit_of_measurement = LENGTH_KILOMETERS

def __init__(self, feed_manager, external_id):
"""Initialize entity with data from feed entry."""
self._feed_manager = feed_manager
Expand Down Expand Up @@ -238,11 +240,6 @@ def longitude(self) -> float | None:
"""Return longitude value of this external event."""
return self._longitude

@property
def unit_of_measurement(self):
"""Return the unit of measurement."""
return LENGTH_KILOMETERS

@property
def extra_state_attributes(self):
"""Return the device state attributes."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"domain": "ingv_centro_nazionale_terremoti",
"iot_class": "cloud_polling",
"name": "INGV Centro Nazionale Terremoti",
"version": "2021.03.1",
"version": "2021.06.0",
"documentation": "https://github.com/exxamalte/python-georss-ingv-centro-nazionale-terremoti-client",
"requirements": ["georss-ingv-centro-nazionale-terremoti-client==0.4"],
"requirements": ["georss-ingv-centro-nazionale-terremoti-client==0.5"],
"issue_tracker": "https://github.com/caiosweet/Home-Assistant-custom-components-INGV/issues",
"codeowners": ["@exxamalte", "@caiosweet"]
}

0 comments on commit 1e40590

Please sign in to comment.