From c79f13429c556fbb95bf16fd073af3fd56d17cc7 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Thu, 23 Dec 2021 16:41:22 +0100 Subject: [PATCH] Fix Hue docstring (#62684) --- homeassistant/components/hue/v2/helpers.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/hue/v2/helpers.py b/homeassistant/components/hue/v2/helpers.py index 1c26652ce25..307e7c55e03 100644 --- a/homeassistant/components/hue/v2/helpers.py +++ b/homeassistant/components/hue/v2/helpers.py @@ -2,8 +2,7 @@ def normalize_hue_brightness(brightness): - """Returns calculated brightness values""" - + """Return calculated brightness values.""" if brightness is not None: # Hue uses a range of [0, 100] to control brightness. brightness = float((brightness / 255) * 100) @@ -12,8 +11,7 @@ def normalize_hue_brightness(brightness): def normalize_hue_transition(transition): - """Returns rounded transition values""" - + """Return rounded transition values.""" if transition is not None: # hue transition duration is in milliseconds and round them to 100ms transition = int(round(transition, 1) * 1000)