mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Fix octoprint sensor (#3385)
* Fix non-temperature sensors for octoprint * Fix double space in octoprint temperature names * Fix tox linting errors
This commit is contained in:
parent
b78e98702a
commit
7724cb9eb4
@ -60,8 +60,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
tool)
|
||||
devices.append(new_sensor)
|
||||
else:
|
||||
_LOGGER.error("Unknown OctoPrint sensor type: %s", octo_type)
|
||||
|
||||
new_sensor = OctoPrintSensor(octoprint.OCTOPRINT,
|
||||
octo_type,
|
||||
SENSOR_TYPES[octo_type][2],
|
||||
@ -70,7 +68,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
SENSOR_TYPES[octo_type][0],
|
||||
SENSOR_TYPES[octo_type][1])
|
||||
devices.append(new_sensor)
|
||||
|
||||
add_devices(devices)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user