NSW Rural Fire Service icon for geolocation entities (#26416)
* define icon * add myself as codeowner
This commit is contained in:
1 parent
c191551091
commit
d1bc0c1dd9
4 files changed
+15
-1
No files matched your search
@@ -210,6 +210,13 @@ class NswRuralFireServiceLocationEvent(GeolocationEvent):
|
||||
self._size = feed_entry.size
|
||||
self._responsible_agency = feed_entry.responsible_agency
|
||||
|
||||
@property
|
||||
def icon(self):
|
||||
"""Return the icon to use in the frontend."""
|
||||
if self._fire:
|
||||
return "mdi:fire"
|
||||
return "mdi:alarm-light"
|
||||
|
||||
@property
|
||||
def source(self) -> str:
|
||||
"""Return source value of this external event."""
|
||||
|
||||
@@ -6,5 +6,7 @@
|
||||
"geojson_client==0.4"
|
||||
],
|
||||
"dependencies": [],
|
||||
"codeowners": []
|
||||
"codeowners": [
|
||||
"@exxamalte"
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user