1
mirror of https://github.com/home-assistant/core synced 2024-07-15 09:42:11 +02:00

Add docstring (#13232)

This commit is contained in:
Fabian Affolter 2018-03-15 11:45:54 +01:00 committed by GitHub
parent 223bc187dc
commit 6909be1cc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,6 +89,7 @@ class CrimeReportsSensor(Entity):
return self._attributes
def _incident_event(self, incident):
"""Fire if an event occurs."""
data = {
'type': incident.get('type'),
'description': incident.get('friendly_description'),