Skip to content

Commit

Permalink
Merge pull request #37 from heikkih/patch-3
Browse files Browse the repository at this point in the history
Use DeviceEntryType.SERVICE
  • Loading branch information
mrk-its authored Dec 12, 2021
2 parents 4724742 + 1de4c2f commit 0f05fe0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/blitzortung/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from homeassistant.const import ATTR_ATTRIBUTION, CONF_NAME, LENGTH_KILOMETERS
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.device_registry import DeviceEntryType

from .const import (
ATTR_LAT,
Expand Down Expand Up @@ -123,7 +124,7 @@ def device_info(self):
"identifiers": {(DOMAIN, self._integration_name)},
"model": "Lightning Detector",
"sw_version": "0.0.1",
"entry_type": "service",
"entry_type": DeviceEntryType.SERVICE,
}

def update_lightning(self, lightning):
Expand Down

0 comments on commit 0f05fe0

Please sign in to comment.