diff --git a/modi_plus/module/input_module/env.py b/modi_plus/module/input_module/env.py index 90711e1..8eb16b2 100644 --- a/modi_plus/module/input_module/env.py +++ b/modi_plus/module/input_module/env.py @@ -14,10 +14,10 @@ class Env(InputModule): PROPERTY_OFFSET_VOLUME = 6 @property - def intensity(self) -> int: - """Returns the value of intensity between 0 and 100 + def illuminance(self) -> int: + """Returns the value of illuminance between 0 and 100 - :return: The environment's intensity. + :return: The environment's illuminance. :rtype: int """ diff --git a/modi_plus/util/inspection_util.py b/modi_plus/util/inspection_util.py index e18d8f1..ed6b4ea 100644 --- a/modi_plus/util/inspection_util.py +++ b/modi_plus/util/inspection_util.py @@ -106,13 +106,13 @@ def inspect_battery(self, module, i, nb_modules): def inspect_env(self, module, i, nb_modules): self.print_wrap( """ - Environment module has intensity, temperature, humidity and volume as its property. + Environment module has illuminance, temperature, humidity and volume as its property. """ ) input("\nIf you are ready to inspect this module, Press ENTER: ") self.clear() - properties = ["intensity", "temperature", "humidity", "volume"] + properties = ["illuminance", "temperature", "humidity", "volume"] for prop in properties: self.print_module_page(module, i, nb_modules) diff --git a/modi_plus/util/usage_util.py b/modi_plus/util/usage_util.py index 814c37a..f3b21a2 100644 --- a/modi_plus/util/usage_util.py +++ b/modi_plus/util/usage_util.py @@ -135,7 +135,7 @@ def run_env_manual(self): env = bundle.envs[0] while True: - print(f"Env ({env.id}) intensity: {env.intensity}") + print(f"Env ({env.id}) illuminance: {env.illuminance}") print(f"Env ({env.id}) temperature: {env.temperature}") print(f"Env ({env.id}) humidity: {env.humidity}") print(f"Env ({env.id}) volume: {env.volume}")