Private GIT

Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

mypy.ini

Blame
    • Sean Rees's avatar
      56441f5c
      Begin transition from libpurecool to libdyson · 56441f5c
      Sean Rees authored
      Recently Dyson changed their API which broke libpurecool[1]'s integration.
      This resulted in prometheus-dyson being unable to enumerate devices via Dyson,
      and thus fail to restart successfully.
      
      libdyson refactors libpurecool with a clearer separation between the online
      Dyson API & the device-interaction logic. This allows us to perform a one-time
      login to Dyson and cache device information locally, removing the need for
      repeated logins to Dyson. libdyson also has a more consistent API between
      different models.
      
      This change starts the transition by introducing login component (account.py)
      and an adapter (libpurecool_adapter) to use the cached information with
      libpurecool. This also adds a flag (--create_device_cache) to perform the
      login&OTP dance with Dyson and generate the needed configuration.
      
      [1] https://github.com/etheralm/libpurecool/issues/37
      56441f5c
      History
      Begin transition from libpurecool to libdyson
      Sean Rees authored
      Recently Dyson changed their API which broke libpurecool[1]'s integration.
      This resulted in prometheus-dyson being unable to enumerate devices via Dyson,
      and thus fail to restart successfully.
      
      libdyson refactors libpurecool with a clearer separation between the online
      Dyson API & the device-interaction logic. This allows us to perform a one-time
      login to Dyson and cache device information locally, removing the need for
      repeated logins to Dyson. libdyson also has a more consistent API between
      different models.
      
      This change starts the transition by introducing login component (account.py)
      and an adapter (libpurecool_adapter) to use the cached information with
      libpurecool. This also adds a flag (--create_device_cache) to perform the
      login&OTP dance with Dyson and generate the needed configuration.
      
      [1] https://github.com/etheralm/libpurecool/issues/37
    sensors.go 4.26 KiB