Skip to content

Commit

Permalink
Fix warning about import.
Browse files Browse the repository at this point in the history
  • Loading branch information
boralyl authored May 23, 2020
1 parent e23818f commit 278c598
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom_components/steam_wishlist/entities.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import logging
from typing import List

from homeassistant.components.binary_sensor import BinarySensorDevice
try:
from homeassistant.components.binary_sensor import BinarySensorEntity
except ImportError:
# Prior to HA v0.110
from homeassistant.components.binary_sensor import BinarySensorDevice
from homeassistant.helpers.entity import Entity
from homeassistant.util import slugify

Expand Down

0 comments on commit 278c598

Please sign in to comment.