Be consistent with Home Assistant and Hass.io spelling (#30500)

* Be consistent with Home Assistant spelling

* Be consistent with Hass.io spelling
This commit is contained in:
Ville Skyttä 2020-01-05 14:09:17 +02:00 committed by GitHub
parent 24b25b8917
commit 5216477353
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
139 changed files with 189 additions and 189 deletions

View file

@ -19,12 +19,12 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
def to_lutron_level(level):
"""Convert the given HASS light level (0-255) to Lutron (0.0-100.0)."""
"""Convert the given Home Assistant light level (0-255) to Lutron (0.0-100.0)."""
return float((level * 100) / 255)
def to_hass_level(level):
"""Convert the given Lutron (0.0-100.0) light level to HASS (0-255)."""
"""Convert the given Lutron (0.0-100.0) light level to Home Assistant (0-255)."""
return int((level * 255) / 100)