Skip to content

Conversation

fifeek0
Copy link
Owner

@fifeek0 fifeek0 commented Sep 18, 2025

This pull request makes minor improvements to the import statements in custom_components/tech/fan.py for better readability and consistency, and adds a new helper method for device state retrieval.

Code readability and maintainability:

  • Refactored several import statements from .const to use multi-line format for improved clarity and consistency in async_setup_entry, is_on, and percentage methods. [1] [2] [3]
  • Removed an unused import of PARTY_MODE_MIN_MINUTES from the _get_party_mode_duration method.

Functionality:

  • Added a new get_state method to retrieve the device state based on the gear parameter.

@fifeek0 fifeek0 merged commit b5965a8 into defro-drx Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant