mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix default value for correction_factor (Thanks @luxus)
This commit is contained in:
parent
722af9014d
commit
b33714bca3
@ -70,7 +70,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
|||||||
data,
|
data,
|
||||||
config.get('name', DEFAULT_NAME),
|
config.get('name', DEFAULT_NAME),
|
||||||
config.get('unit_of_measurement'),
|
config.get('unit_of_measurement'),
|
||||||
config.get('correction_factor', None),
|
config.get('correction_factor', 1.0),
|
||||||
config.get('decimal_places', 0)
|
config.get('decimal_places', 0)
|
||||||
)])
|
)])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user