Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate wifi_led in favor of led #1342

Merged
merged 2 commits into from
Mar 3, 2022
Merged

Conversation

rytilahti
Copy link
Owner

Doing this makes all devices with leds to have a common interface. chuangmi_plug and powerstrip are affected:

  • Use set_led(bool) instead of set_wifi_led(bool)
  • Use led() -> bool instead of wifi_led() -> bool for status

Doing this makes all devices with leds to have a common interface
@codecov-commenter
Copy link

codecov-commenter commented Mar 3, 2022

Codecov Report

Merging #1342 (cdd31d3) into master (670ecba) will increase coverage by 0.00%.
The diff coverage is 90.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1342   +/-   ##
=======================================
  Coverage   82.37%   82.38%           
=======================================
  Files         109      109           
  Lines       11832    11850   +18     
  Branches     1397     1399    +2     
=======================================
+ Hits         9747     9763   +16     
  Misses       1877     1877           
- Partials      208      210    +2     
Impacted Files Coverage Δ
miio/chuangmi_plug.py 91.17% <88.88%> (-0.32%) ⬇️
miio/powerstrip.py 96.33% <90.00%> (-0.67%) ⬇️
miio/device.py 55.40% <100.00%> (+0.30%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 670ecba...cdd31d3. Read the comment docs.

@rytilahti rytilahti merged commit b8b9c1a into master Mar 3, 2022
@rytilahti rytilahti deleted the refactor/deprecate_set_wifi_led branch March 3, 2022 17:01
rytilahti added a commit that referenced this pull request Mar 7, 2022
This release fixes zhimi.fan.za5 support and makes all integrations introspectable for their supported models.
For developers, there is now a network trace parser (in devtools/parse_pcap.py) that prints the decrypted the traffic for given tokens.

The following previously deprecated classes in favor of model-based discovery, if you were using these classes directly you need to adjust your code:
* AirFreshVA4 - use AirFresh
* AirHumidifierCA1, AirHumidifierCB1, AirHumidifierCB2 - use AirHumidifier
* AirDogX5, AirDogX7SM - use AirDogX3
* AirPurifierMB4 - use AirPurifierMiot
* Plug, PlugV1, PlugV3 - use ChuangmiPlug
* FanP9, FanP10, FanP11 - use FanMiot
* DreameVacuumMiot - use DreameVacuum
* Vacuum - use RoborockVacuum

[Full Changelog](0.5.10...0.5.11)

**Breaking changes:**

- Remove deprecated integration classes [\#1343](#1343) (@rytilahti)

**Implemented enhancements:**

- Add PCAP file parser for protocol analysis [\#1331](#1331) (@rytilahti)

**Fixed bugs:**

- Fix bug for zhimi.fan.za5 resulting in user ack timeout [\#1348](#1348) (@saxel)

**Deprecated:**

- Deprecate wifi\_led in favor of led [\#1342](#1342) (@rytilahti)

**Merged pull requests:**

- Make sure miotdevice implementations define supported models [\#1345](#1345) (@rytilahti)
- Add Viomi V2 \(viomi.vacuum.v6\) as supported [\#1340](#1340) (@rytilahti)
- Mark Roborock S7 MaxV \(roborock.vacuum.a27\) as supported [\#1337](#1337) (@rytilahti)
- Add pyupgrade to CI runs [\#1329](#1329) (@rytilahti)
@rytilahti rytilahti mentioned this pull request Mar 7, 2022
rytilahti added a commit that referenced this pull request Mar 7, 2022
This release fixes zhimi.fan.za5 support and makes all integrations introspectable for their supported models.
For developers, there is now a network trace parser (in devtools/parse_pcap.py) that prints the decrypted the traffic for given tokens.

The following previously deprecated classes in favor of model-based discovery, if you were using these classes directly you need to adjust your code:
* AirFreshVA4 - use AirFresh
* AirHumidifierCA1, AirHumidifierCB1, AirHumidifierCB2 - use AirHumidifier
* AirDogX5, AirDogX7SM - use AirDogX3
* AirPurifierMB4 - use AirPurifierMiot
* Plug, PlugV1, PlugV3 - use ChuangmiPlug
* FanP9, FanP10, FanP11 - use FanMiot
* DreameVacuumMiot - use DreameVacuum
* Vacuum - use RoborockVacuum

[Full Changelog](0.5.10...0.5.11)

**Breaking changes:**

- Remove deprecated integration classes [\#1343](#1343) (@rytilahti)

**Implemented enhancements:**

- Add PCAP file parser for protocol analysis [\#1331](#1331) (@rytilahti)

**Fixed bugs:**

- Fix bug for zhimi.fan.za5 resulting in user ack timeout [\#1348](#1348) (@saxel)

**Deprecated:**

- Deprecate wifi\_led in favor of led [\#1342](#1342) (@rytilahti)

**Merged pull requests:**

- Make sure miotdevice implementations define supported models [\#1345](#1345) (@rytilahti)
- Add Viomi V2 \(viomi.vacuum.v6\) as supported [\#1340](#1340) (@rytilahti)
- Mark Roborock S7 MaxV \(roborock.vacuum.a27\) as supported [\#1337](#1337) (@rytilahti)
- Add pyupgrade to CI runs [\#1329](#1329) (@rytilahti)
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.

2 participants