epenet
af40b6524e
Use new ServiceInfo location in component tests (part 3) ( #136064 )
2025-01-20 13:16:59 +01:00
Simone Chemelli
3a213b2d17
Use standard "entity_registry_enabled_by_default" fixture ( #134962 )
2025-01-07 18:21:26 +01:00
G Johansson
cdfec7ebb4
Implement new state property for alarm_control_panel which is using an enum ( #126283 )
...
* Alarm state from enum
* Fixes
* Set final
* Fix rebase
* Test const
* Fix breaking version
* Fix other for alarm_control_panel
* Fix integrations
* More
* More
* More
* More
* Fix zha
* Replace _attr_state
* Fix alarm_control_panel
* Fix tests
* Fixes
* Mods
* Change some
* More
* More
* More
* Tests
* Last tests
* Return enum
* Fix zha
* Remove not needed check
* Fix wording
* Fix homekit
* Mod prometheus
* Fix mypy
* Fix homekit
* Fix ifttt
2024-10-21 22:54:27 +02:00
Sid
e662e3b65c
Bump ruff to 0.4.2 ( #116201 )
...
* Bump ruff to 0.4.2
* review comments
2024-04-26 08:48:32 +02:00
Joost Lekkerkerker
906d3198e3
Use is in enum comparison in config flow tests F-J ( #114670 )
...
* Use right enum expression F-J
* Fix
2024-04-02 23:01:37 +02:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
Marc Mueller
c88b337600
Add empty line after module docstring [tests f-k] ( #112709 )
2024-03-08 14:50:04 +01:00
Aurélien Grenotton
b9a8b992d7
Fix freebox pairing in bridge mode ( #106131 )
2024-02-15 12:34:29 +01:00
Jan-Philipp Benecke
40e1bab0ac
Remove deprecated YAML for freebox ( #107497 )
2024-01-08 09:36:17 +01:00
Quentame
923c13907c
Fix Freebox Home alarm & improve platform tests ( #103475 )
...
* Fix Freebox Home alarm
* Add trigger feature test & fix
* FreeboxCallSensor: Add test for missing coverage of new call
* Use generator
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Add test for arm_home feature (questions about the check)
* Stay focus on alam tests
* can_arm_home ==> if _command_arm_home
* Use one liner for supported_features
* Add idle state
* Fix rebase
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-11-20 15:01:18 +01:00
jflefebvre06
9c86adf644
Fix integration failed when freebox is configured in bridge mode ( #103221 )
2023-11-19 00:02:00 +01:00
Quentame
3666af0b10
Fix Freebox flaky tests ( #103745 )
2023-11-10 13:51:35 +01:00
Joost Lekkerkerker
d75a6a3b4b
Use right functions for fixtures in Freebox test ( #103135 )
2023-10-31 17:25:08 +01:00
Narmishka
f55cd17982
Move Freebox tests to fixtures ( #103128 )
2023-10-31 15:50:17 +00:00
nachonam
cf03f8338a
Add Freebox Home alarm panel ( #102607 )
...
* add alarm control panel
* optimize update node
* Modify comment
* move const to alarm
* add alarm panel tests
* tests modified
* add file into coveragerc
* Review: DATA_HOME_GET_VALUES -> DATA_HOME_PIR_GET_VALUES
* Review: commands rename
* Review: precise what "alarm2" is for features
* Review: remove custom attributes & properties that exists in parent
* Review: Avoid duplicates of async_write_ha_state()
* make functions private
* Review: initial state never works
* Review: remove extra attrs
* Review: fix tests
* Fix tests
* Remove line in .coveragerc
---------
Co-authored-by: Quentame <polletquentin74@me.com>
2023-10-26 12:35:51 +00:00
nachonam
9fdc8494b6
Add Freebox Home binary sensors ( #92196 )
...
Co-authored-by: Quentame <polletquentin74@me.com>
2023-09-27 17:11:31 +02:00
J. Nick Koston
0eca433004
Update zeroconf discovery to use IPAddress objects to avoid conversions ( #100567 )
2023-09-19 18:58:46 +02:00
Quentame
8625bf7894
Add some tests to Freebox ( #99755 )
2023-09-13 20:22:47 +02:00
Quentame
c3e14d0514
Fix Freebox Home battery sensor ( #99756 )
2023-09-07 17:28:50 +02:00
Quentame
1a22ab77e1
Fix Freebox disk free space sensor ( #99757 )
...
* Fix Freebox disk free space sensor
* Add initial value assert to check results
2023-09-07 10:28:08 +02:00
Quentame
f1ec99b9c9
Add Freebox Home battery sensor ( #99222 )
...
* Add Freebox Home battery sensor
* Review
* Review 2
* Freebox battery is a SensorEntity, not a FreeboxSensor
2023-08-29 12:13:01 +02:00
Erik Montnemery
983ebeff80
Adjust freebox tests which create devices ( #98190 )
2023-08-10 18:22:44 +02:00
Jan Bouwhuis
d9721702af
Address late review of freebox tests ( #95910 )
...
Use lower case for local variables
2023-07-05 16:59:10 +02:00
Florent Thiery
bd7057f7b1
Add raid array degraded state binary sensor to freebox sensors ( #95242 )
...
Add raid array degraded state binary sensor
2023-07-05 15:09:12 +02:00
nachonam
2d510bfe0d
Add camera platform to Freebox ( #88104 )
...
* Add Freebox cameras
* Apply suggestions from code review
add code corrections after PR review
Co-authored-by: Quentame <polletquentin74@me.com>
* Update base_class.py
* add some code syntax corrections add unit tests
* add unit tests
* add syntax changes
* Update homeassistant/components/freebox/router.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/router.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/base_class.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/router.py
Co-authored-by: Quentame <polletquentin74@me.com>
* clear code and add minor changes
* correct syntax error and check home granted access
* typing functions
* Update tests/components/freebox/conftest.py
don't needed, and will fix tests.
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
Rename _volume_micro variable
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
Use const not literal
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
set to true not needed
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
use _attr_supported_features instead _supported_features
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
overload the entity with command_flip property and set_flip not needed
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
Cameras does not default to False,
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
delete this function because is not needed
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
Co-authored-by: Quentame <polletquentin74@me.com>
* consts, rollback _command flip is protected var
* VALUE_NOT_SET does not exists anymore
* Use HOME_COMPATIBLE_PLATFORMS
* Rename FreeboxHomeBaseClass to FreeboxHomeEntity
* Update Freebox Home comment
* Use CATEGORY_TO_MODEL to set model attr of FreeboxHomeEntity
* Use Home API from the router
* Add SERVICE_FLIP const
* Use SERVICE_FLIP const
* Fix typo in HOME_COMPATIBLE_PLATFORMS
* fix somme code issues
* use SERVICE_FLIP (lost in merge)
* use _attr_device_info
* clear code
* HOME_COMPATIBLE_PLATFORMS is a list
* Update homeassistant/components/freebox/home_base.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/home_base.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/config_flow.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/home_base.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/home_base.py
Co-authored-by: Quentame <polletquentin74@me.com>
* clear config_flow permission
* Update homeassistant/components/freebox/home_base.py
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
Co-authored-by: Quentame <polletquentin74@me.com>
* add untested files to. coveragerc
* clear unused attributes
* add not tested file camera.py
* clear unusued const
* add extra_state_attributes
* Update .coveragerc
Co-authored-by: Quentame <polletquentin74@me.com>
* Update homeassistant/components/freebox/camera.py
Co-authored-by: Quentame <polletquentin74@me.com>
* fetch _flip
* del flip service
* add device_info via_device
* Update .coveragerc
* Update .coveragerc
* Update .coveragerc
* Update .coveragerc
* Remove flip reference
* Fix issue on router without Home API
* Fix "Home access is not granted" log repeats every 30s
* Fix sensor device_info
---------
Co-authored-by: Quentame <polletquentin74@me.com>
2023-04-26 00:03:39 +02:00
epenet
b9beed4624
Add type hints to integration tests (part 6) ( #87979 )
2023-02-13 09:45:11 +01:00
Franck Nijhof
330e1c6cbb
Clean up unnecessary registry mocks from integration tests ( #87763 )
2023-02-09 10:43:45 +01:00
Franck Nijhof
8f74bff354
Enable Ruff PLC0414 ( #86799 )
2023-01-27 16:32:04 +01:00
epenet
7bc2712142
Adjust root-import in tests ( #78761 )
...
* Adjust root-import in tests
* Adjust diagnostics
* Adjust button
* Adjust select
* Adjust device_tracker
* Adjust camera
* Adjust humidifier
* Adjust media_source
* Adjust update
* Adjust siren
* Adjust number
* Adjust alarm_control_panel
* Adjust notify
* Adjust sensor
* Adjust switch
* Revert anthemav
* Don't adjust demo humidifier
2022-09-19 15:22:23 +02:00
Benoit Anastay
766523cf8c
Fix error with HDD temperature report in Freebox integration ( #74718 )
...
* Fix error whith HDD temperature report
There was a non handled error case, documented in issue https://github.com/home-assistant/core/issues/43812 back in 2020 and the fix wasn't applied
* Use get method instead of ignoring the sensor
* Update test values
Add idle state drive with unkown temp
* update Tests for system sensors api
* Fix booleans values
* Fix disk unique_id
There was a typo in the code
2022-07-08 14:22:31 -07:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
Joshua Roys
9134e5c844
Get discovered zeroconf IPv6 addresses ( #65462 )
2022-02-11 16:46:17 -06:00
epenet
cc5bb556c8
Move Freebox reboot service to a button entity ( #65501 )
...
* Add restart button to freebox
* Add warning
* restart => reboot
* Add button tests
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-09 22:20:24 +01:00
Paulus Schoutsen
2b4bb49eb7
Make device tracker entities work better ( #63328 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-04 23:16:43 -08:00
epenet
ab1e14204f
Rename zeroconf service info ( #59467 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-10 15:26:47 +01:00
epenet
cf22bd8807
Use zeroconf attributes in freebox ( #58967 )
...
* Use zeroconf attributes in freebox
* Use zeroconf.HaServiceInfo in tests
2021-11-09 00:27:36 +01:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ( #57157 )
...
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
Ville Skyttä
19d25cd901
Change config entry state to an enum ( #49654 )
...
* Change config entry state to an enum
* Allow but deprecate EntryState str equality comparison
* Test fixes
* Rename to ConfigEntryState
* Remove str comparability backcompat
* Update new occurrences of strs cropped up during review
2021-05-20 19:19:20 +02:00
jan iversen
6a4f414236
Change HomeAssistantType to HomeAssistant ( #49522 )
2021-04-21 15:53:06 -10:00
Quentame
6b9abfc2c6
Add init test to Freebox ( #46998 )
...
* Add init test to Freebox
* Review : more readable conftest
* Expect 2 blank lines between defs
* Review : Not I/O in the event loop
* Fix test_setup test
* remove useless const
* Review : mock setup methods
* Add service test
* Add import test
2021-03-02 13:37:33 +01:00
Quentame
125206adbf
Add zeroconf discovery to Freebox ( #47045 )
...
* Add zeroconf discovery to Freebox
- remove deprecated discovery
- tried with SSDP too but the presentation URL is not the same (*.fbxos.fr for zeroconf, http://mafreebox.freebox.fr/ for SSDP)
- so config entry unique_id should be the MAC (included into SSDP, but not zeroconf, can be retrieve from `fbx.system.get_config()`)
- DHCP discovery might be added in the future too
* host and port are required on zeroconf
* cleanup in other PR
2021-02-25 16:50:58 +01:00
Paulus Schoutsen
1989b8c07d
Clean up discovery integration ( #47022 )
...
* Clean up discovery integration
* Fix tests
* Remove discovery step from freebox
2021-02-25 12:19:21 +01:00
Quentame
d9dba1b7ab
Bump Freebox to 0.0.9 ( #45837 )
...
* Bump Freebox to 0.0.9
* Remove @SNoof85 from code owners
* Module is now freebox_api
2021-02-02 22:57:06 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
SNoof85
0a700f7272
Common strings in Freebox config flow ( #40938 )
2020-10-01 11:31:43 +02:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Paulus Schoutsen
0d700f6a63
Fix tests for Python 3.8 ( #34672 )
2020-04-25 14:32:55 -07:00