Commit graph

194 commits

Author SHA1 Message Date
J. Nick Koston
b6dfa1fa7c
Bump nexia to 2.0.8 (#107835) 2024-01-12 09:32:38 +01:00
Joost Lekkerkerker
097c7fbfef
Add entity translations to Nexia (#98803) 2023-08-22 07:41:15 -05:00
Benjamin Paul [MSFT]
5965918c86
Add Fan Speed number entity to Nexia (#98642)
* Add Fan Speed support to Nexia integration

Adds a new "set_fan_speed" service to the Nexia integration, to allow
setting speed of the air-handler/blower fans.

* Add Fan Speed to Nexia Tests

* Remove mistakenly-added changes to Climate tests

A previous version of this change made modifications to the base
Climate entity, but that approach was later abandonded. These changes
to Climate tests were left over from that, and should never have been
included.

* Add Fan Speed Number Entity

* Remove Set Fan Speed Service

* Remove fan_speed attribute

The fan_speed attribute is not necessary with the new Number entity.

* Address reviewer feedback

Rename test function to reflect fact that fan speed entities are
entities, and not sensors.
Added missing typing to variables.
Sorted list of platforms

* Add test_set_fan_speed

Also adds new test fixture for mock response to API call

* Update homeassistant/components/nexia/number.py

* Name change

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-08-19 16:42:13 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
J. Nick Koston
0a56361ca4
Disable always_update in nexia coordinator (#97436) 2023-07-28 17:46:26 -05:00
J. Nick Koston
c11222c1d0
Bump nexia to 2.0.7 (#97432) 2023-07-28 16:37:08 -05:00
Franck Nijhof
90d839724c
Migrate integration services (N-P) to support translations (#96376) 2023-07-12 00:33:37 +02:00
J. Nick Koston
61e57872c3
Fix not retrying on connection reset during nexia config entry setup (#93576)
* Fix not retrying on connection reset during nexia config entry setup

fixes
```
2023-05-26 00:15:39.129 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Alexander for nexia
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 558, in _request
    resp = await req.send(conn)
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 670, in send
    await writer.write_headers(status_line, self.headers)
  File "/usr/local/lib/python3.11/site-packages/aiohttp/http_writer.py", line 130, in write_headers
    self._write(buf)
  File "/usr/local/lib/python3.11/site-packages/aiohttp/http_writer.py", line 75, in _write
    raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/nexia/__init__.py", line 47, in async_setup_entry
    await nexia_home.login()
  File "/usr/local/lib/python3.11/site-packages/nexia/home.py", line 385, in login
    request = await self.post_url(self.API_MOBILE_ACCOUNTS_SIGN_IN_URL, payload)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/nexia/home.py", line 157, in post_url
    response: aiohttp.ClientResponse = await self.session.post(
                                       ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 572, in _request
    raise ClientOSError(*exc.args) from exc
aiohttp.client_exceptions.ClientOSError: Cannot write to closing transport
```

* coverage
2023-05-25 21:52:44 -04:00
Erik Montnemery
1450b44c63
Sort manifests 7 (#87028) 2023-02-08 20:32:43 +01:00
Franck Nijhof
939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
GitHub Action
d1ecc418bb [ci skip] Translation update 2023-01-19 00:25:04 +00:00
GitHub Action
b3ab0a0199 [ci skip] Translation update 2022-12-29 00:23:20 +00:00
Marc Mueller
1de41ab123
Improve DataUpdateCoordinator typing in integrations (1) (#84655) 2022-12-27 22:44:25 +01:00
epenet
af7a487706
Use unit enums in nexia (#84349) 2022-12-21 11:13:16 +01:00
GitHub Action
f25017313a [ci skip] Translation update 2022-12-09 00:24:29 +00:00
GitHub Action
1f3e5fb4fc [ci skip] Translation update 2022-12-07 00:24:08 +00:00
epenet
8b867d612f
Use UnitOfTemperature in climate entities [m-s] (#83131) 2022-12-02 19:56:18 +01:00
GitHub Action
230b50d099 [ci skip] Translation update 2022-11-29 00:26:01 +00:00
GitHub Action
eaf6d43508 [ci skip] Translation update 2022-11-23 00:26:26 +00:00
GitHub Action
3bea04e387 [ci skip] Translation update 2022-11-21 00:26:41 +00:00
epenet
ba546e1072
Use _attr_supported_features in nexia climate (#82218) 2022-11-16 13:47:58 -06:00
J. Nick Koston
7ce6600f69
Fix missing await in nexia emergency heat (#82207)
fixes undefined
2022-11-16 19:02:09 +01:00
GitHub Action
dcf68d768e [ci skip] Translation update 2022-11-09 00:27:20 +00:00
J. Nick Koston
b313f37946
Bump nexia to 2.0.6 (#81474)
* Bump nexia to 2.0.6

- Marks thermostat unavailable when it is offline

* is property
2022-11-05 15:55:43 +01:00
J. Nick Koston
44e368ad55
Bump nexia to 2.0.5 (#81061)
fixes #80988
2022-10-27 07:38:03 +02:00
GitHub Action
388328adba [ci skip] Translation update 2022-10-17 00:36:39 +00:00
J. Nick Koston
5b6e46e7b7
Fix nexia permanent hold when cool and heat temps are within 2 degrees (#80297) 2022-10-13 20:53:09 -04:00
epenet
e2568d8375
Import climate constants from root [m-z] (#78020) 2022-09-08 10:34:44 +02:00
epenet
420733a064
Improve entity type hints [n] (#77824) 2022-09-05 07:53:55 -05:00
GitHub Action
bec8e544f4 [ci skip] Translation update 2022-08-14 00:25:47 +00:00
GitHub Action
6e03b12a93 [ci skip] Translation update 2022-08-13 00:25:00 +00:00
GitHub Action
cb46441b74 [ci skip] Translation update 2022-08-05 00:28:51 +00:00
GitHub Action
81e3ef03f7 [ci skip] Translation update 2022-08-02 00:27:42 +00:00
J. Nick Koston
3f6e930489
Bump nexia to 2.0.2 (#75209) 2022-07-14 21:03:12 +02:00
J. Nick Koston
cd03c49fc2
Wait for config entry platform forwards (#73806) 2022-07-09 17:27:42 +02:00
J. Nick Koston
ee6866b8a3
Bump nexia to 2.0.1 (#74148) 2022-06-28 19:48:58 -05:00
GitHub Action
f5fe210eca [ci skip] Translation update 2022-06-29 00:23:03 +00:00
J. Nick Koston
15ed329108
Add async_remove_config_entry_device support to nexia (#73966)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-06-25 12:02:38 -04:00
J. Nick Koston
44da543ca0
Bump nexia to 2.0.0 (#73935) 2022-06-24 09:59:41 -05:00
J. Nick Koston
7a792b093f
Fix calling permanent off with nexia (#73623)
* Fix calling permanent off with nexia

Changelog: https://github.com/bdraco/nexia/compare/1.0.1...1.0.2

Fixes #73610

* one more
2022-06-17 21:57:44 -05:00
J. Nick Koston
3681596430
Bump nexia to 1.0.1 (#72185)
- Fixes blower state when system is turned off

- Changelog: https://github.com/bdraco/nexia/compare/1.0.0...1.0.1

- Fixes #71949
2022-05-19 18:33:49 -05:00
J. Nick Koston
1c4c0f1eb3
Small fixes and cleanups to legacy nexia code (#72176) 2022-05-19 11:50:54 -05:00
GitHub Action
3a13ffcf13 [ci skip] Translation update 2022-05-19 00:26:11 +00:00
J. Nick Koston
d8a580a90f
Update nexia to use asyncio (#72108) 2022-05-18 18:08:02 -05:00
GitHub Action
37f81b261d [ci skip] Translation update 2022-05-16 00:24:28 +00:00
J. Nick Koston
b562416eb2
Remove humidify_supported and dehumidify_supported attributes from nexia (#71248)
These non-standard attributes can already be infered from the dehumidify_setpoint
or humidify_setpoint and took up space in the database every time
any of the values changes
2022-05-03 17:33:50 +03:00
epenet
7fb8bb7769
Use climate enums in nexia (#70725) 2022-04-25 21:06:33 -10:00
epenet
96819fff74
Use EntityFeature enum in components (n**) (#69432) 2022-04-06 21:34:29 -10:00
epenet
bfd84ba89c
Prettify yaml (services.yaml) (#68878) 2022-03-30 09:48:06 +02:00
J. Nick Koston
4b963c2ac0
Add diagnostics support to nexia (#68215) 2022-03-15 15:55:08 -10:00