Change STATE_UNKOWN to None (#20337)
* Change STATE_UNKOWN to None * Change STATE_UNKOWN to None * tests * tests * tests * tests * tests * style * fix comments * fix comments * update fan test
This commit is contained in:
parent
074fcd96ed
commit
1bd31e3459
64 changed files with 147 additions and 168 deletions
|
@ -9,7 +9,7 @@ import logging
|
|||
import voluptuous as vol
|
||||
|
||||
from homeassistant.const import (
|
||||
CONF_NAME, STATE_UNKNOWN, CONF_UNIT_OF_MEASUREMENT, CONF_PAYLOAD)
|
||||
CONF_NAME, CONF_UNIT_OF_MEASUREMENT, CONF_PAYLOAD)
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.components import pilight
|
||||
|
@ -46,7 +46,7 @@ class PilightSensor(Entity):
|
|||
|
||||
def __init__(self, hass, name, variable, payload, unit_of_measurement):
|
||||
"""Initialize the sensor."""
|
||||
self._state = STATE_UNKNOWN
|
||||
self._state = None
|
||||
self._hass = hass
|
||||
self._name = name
|
||||
self._variable = variable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue