mirror of
https://github.com/home-assistant/core
synced 2024-08-18 20:45:41 +02:00
Add docstring (#13232)
This commit is contained in:
parent
223bc187dc
commit
6909be1cc7
@ -89,6 +89,7 @@ class CrimeReportsSensor(Entity):
|
|||||||
return self._attributes
|
return self._attributes
|
||||||
|
|
||||||
def _incident_event(self, incident):
|
def _incident_event(self, incident):
|
||||||
|
"""Fire if an event occurs."""
|
||||||
data = {
|
data = {
|
||||||
'type': incident.get('type'),
|
'type': incident.get('type'),
|
||||||
'description': incident.get('friendly_description'),
|
'description': incident.get('friendly_description'),
|
||||||
|
Loading…
Reference in New Issue
Block a user