mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Upgrade pmsensor to 0.3 (#2883)
This commit is contained in:
parent
ca1de9cac1
commit
def9bbf827
@ -12,7 +12,7 @@ from homeassistant.helpers.entity import Entity
|
|||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||||
|
|
||||||
REQUIREMENTS = ['pmsensor==0.2']
|
REQUIREMENTS = ['pmsensor==0.3']
|
||||||
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
@ -29,7 +29,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||||||
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Setup the available PM sensors."""
|
"""Setup the available PM sensors."""
|
||||||
from pmsensor import serial_data_collector as pm
|
from pmsensor import serial_pm as pm
|
||||||
|
|
||||||
try:
|
try:
|
||||||
coll = pm.PMDataCollector(config.get(CONF_SERIAL_DEVICE),
|
coll = pm.PMDataCollector(config.get(CONF_SERIAL_DEVICE),
|
||||||
|
@ -255,7 +255,7 @@ pilight==0.0.2
|
|||||||
plexapi==2.0.2
|
plexapi==2.0.2
|
||||||
|
|
||||||
# homeassistant.components.sensor.serial_pm
|
# homeassistant.components.sensor.serial_pm
|
||||||
pmsensor==0.2
|
pmsensor==0.3
|
||||||
|
|
||||||
# homeassistant.components.climate.proliphix
|
# homeassistant.components.climate.proliphix
|
||||||
# homeassistant.components.thermostat.proliphix
|
# homeassistant.components.thermostat.proliphix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user