Skip to content
Snippets Groups Projects
Commit b33714bc authored by Fabian Affolter's avatar Fabian Affolter
Browse files

Fix default value for correction_factor (Thanks @luxus)

parent 722af901
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
data,
config.get('name', DEFAULT_NAME),
config.get('unit_of_measurement'),
config.get('correction_factor', None),
config.get('correction_factor', 1.0),
config.get('decimal_places', 0)
)])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment