Fixes according to review from @MartinHjelmare Thank you. (#12171)
This commit is contained in:
parent
cee57aab24
commit
bd29cd2ba2
4 changed files with 68 additions and 80 deletions
|
@ -6,11 +6,11 @@ https://home-assistant.io/components/sensor.melissa/
|
|||
"""
|
||||
import logging
|
||||
|
||||
from homeassistant.components.melissa import DOMAIN, DATA_MELISSA
|
||||
from homeassistant.const import TEMP_CELSIUS, STATE_UNKNOWN
|
||||
from homeassistant.components.melissa import DATA_MELISSA
|
||||
from homeassistant.const import TEMP_CELSIUS
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
DEPENDENCIES = [DOMAIN]
|
||||
DEPENDENCIES = ['melissa']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -35,7 +35,7 @@ class MelissaSensor(Entity):
|
|||
def __init__(self, device, api):
|
||||
"""Initialize the sensor."""
|
||||
self._api = api
|
||||
self._state = STATE_UNKNOWN
|
||||
self._state = None
|
||||
self._name = '{0} {1}'.format(
|
||||
device['name'],
|
||||
self._type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue