panasonic_cc icon indicating copy to clipboard operation
panasonic_cc copied to clipboard

Bump aioaquarea dependency to 1.0.0

Open matthieuwerner opened this issue 3 months ago • 3 comments

NOTE (first contribution):
This is my first contribution to a Home Assistant / HACS integration. I'm not entirely sure if this is the proper way to handle dependency and entity updates here, so I'm open to any feedback or suggestions for improvement.

This PR updates the aioaquarea dependency from 0.7.2 to 1.0.0 to fix Auth0 authentication issues and adds new Aquarea-specific entities for improved control and monitoring.

Problem

Aquarea devices were failing to authenticate due to changes in the Panasonic Auth0 authentication flow. The aioaquarea library was updated on October 23, 2025 (v1.0.0) to address this issue with a refactored authentication system.

Changes

Dependency Updates

  • Updated requirements.txt: aioaquarea==0.7.2 → 1.0.0
  • Updated manifest.json: aioaquarea==0.7.2 → 1.0.0

Code Quality Improvements

  • Fixed typo: aquarea_coorinatorsaquarea_coordinators
  • Added missing docstrings
  • Improved None checks for temperature values

New Aquarea Entities

This PR adds extensive support for Panasonic Aquarea heat pumps:

Number Entities (per zone):

  • number.zone_{id}_heat_target – Set heat target temperature
  • number.zone_{id}_cool_target – Set cool target temperature

Sensor Entities (diagnostic):

  • sensor.pac_pump_duty – Pump duty percentage
  • sensor.pac_direction – Water flow direction
  • sensor.pac_device_mode_status – Device status (NORMAL/DEFROST)
  • sensor.pac_fault_status – Fault status

Select Entities (control):

  • select.pac_special_status – ECO/COMFORT/NORMAL modes
  • select.pac_powerful_time – Powerful mode duration (OFF/30min/60min/90min)

Climate Entities (improved):

  • Existing climate entities now work reliably with fixed authentication
  • Better support for multi-zone devices

Technical Details

  • Uses safe access to vendor library private attributes with getattr()
  • Entities automatically disabled if not supported by device
  • Safe None handling for optional temperature values
  • Proper type hints and docstrings throughout

Testing

  • Tested with Aquarea heat pump device (B134018309)
  • Authentication working with new library version
  • All existing features continue to work
  • New entities properly exposed and controllable
  • Multi-zone support verified

Breaking Changes

None — this is a backward-compatible update.

Related

matthieuwerner avatar Oct 26 '25 16:10 matthieuwerner