Skip to content

v0.34.1-beta.7

Pre-release
Pre-release

Choose a tag to compare

@cmgrayb cmgrayb released this 18 Jun 16:47
6a56e16

custom_components/hass_dyson/image.py

  • Dust map (v2 path): Replaced the dead S3 binary detective path
    (_fetch_v2_dust_map_bytes + zlib magic-byte sniffing) with a call to
    client.get_map_image(serial, clean_id) from libdyson-rest v0.15.0b5.
    The RB05 dust map now renders via the Dyson Map Visualizer API.
  • Floor plan (v2 path): When presentation_map_data is empty (as it
    always is for the RB05 from the v1 persistent-maps endpoint), the code now
    falls back to _fetch_map_image(coordinator, pmap_id) — the Map Visualizer
    renders the floor plan server-side. Previously this path returned None.
  • Added _fetch_map_image(coordinator, map_id) helper with a 10-minute TTL
    cache. Accepts either a clean session UUID (dust map) or a persistent map ID
    (floor plan).
  • Removed the now-dead _fetch_v2_dust_map_bytes helper.
  • Removed the unused async_get_clientsession import.
  • Updated module docstring to describe the v1/v2 rendering strategy.