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

Numeric values lost after upgrade to HA2024.1.0 #14

Closed
Avatar1976 opened this issue Jan 4, 2024 · 8 comments
Closed

Numeric values lost after upgrade to HA2024.1.0 #14

Avatar1976 opened this issue Jan 4, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@Avatar1976
Copy link

Screenshot_20240104_131657_Home Assistant
I also noted an error when selecting products about not being able to select "none". Suspect related to numeric values.

@Avatar1976
Copy link
Author

Avatar1976 commented Jan 4, 2024

Further Info I get the following three errors on start.

Logger: homeassistant.components.bluetooth.manager
Source: components/bluetooth/manager.py:109
Integration: Bluetooth (documentation, issues)
First occurred: 07:27:15 (1 occurrences)
Last logged: 07:27:15

Error in bluetooth callback
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/bluetooth/manager.py", line 109, in _discover_service_info
    callback(service_info, BluetoothChange.ADVERTISEMENT)
  File "/config/custom_components/jura/__init__.py", line 23, in update_ble
    devices[entry.entry_id] = Device(
                              ^^^^^^^
  File "/config/custom_components/jura/core/device.py", line 52, in __init__
    machine = get_machine(number)
              ^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/jura/core/device.py", line 207, in get_machine
    with f.open("machinefiles/" + items[2] + ".xml") as xml:
                ^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'items' where it is not associated with a value
Logger: homeassistant.components.number
Source: helpers/entity_platform.py:507
Integration: Number (documentation, issues)
First occurred: 07:27:20 (1 occurrences)
Last logged: 07:27:20

Error adding entities for domain number with platform jura
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 662, in _async_add_entity
    capabilities=entity.capability_attributes,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 246, in capability_attributes
    ATTR_STEP: self._calculate_step(min_value, max_value),
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 329, in _calculate_step
    value_range = abs(max_value - min_value)
                      ~~~~~~~~~~^~~~~~~~~~~
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'
Logger: homeassistant.components.number
Source: helpers/entity_platform.py:507
Integration: Number (documentation, issues)
First occurred: 07:27:20 (1 occurrences)
Last logged: 07:27:20

Error adding entities for domain number with platform jura
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 662, in _async_add_entity
    capabilities=entity.capability_attributes,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 246, in capability_attributes
    ATTR_STEP: self._calculate_step(min_value, max_value),
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 329, in _calculate_step
    value_range = abs(max_value - min_value)
                      ~~~~~~~~~~^~~~~~~~~~~
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'

Hope something helps here should I try delete my config and rediscover machine?

@Avatar1976
Copy link
Author

Updating to the newest HA2024.1.1 still resulted in the same, + I tried deleting config and rediscovering it. Resulted in the numeric free text entry fields disappearing completely.
Screenshot_20240106_075930_Home Assistant

@Avatar1976
Copy link
Author

Is there any diagnostic / troubleshooting data that would help here?

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 10, 2024

No. I just have a lot of projects. Most of them broken by 2024.1. Needs some time to fix them one by one

@mrjjr1980
Copy link

mrjjr1980 commented Jan 10, 2024

No. I just have a lot of projects. Most of them broken by 2024.1. Needs some time to fix them one by one

Thanks for your effort, I will wait patiently. спасибо Большое .

@Avatar1976
Copy link
Author

No. I just have a lot of projects. Most of them broken by 2024.1. Needs some time to fix them one by one

No problem, any way the community can help just ask.

@AlexxIT AlexxIT added the bug Something isn't working label Jan 14, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 14, 2024

@Avatar1976
Copy link
Author

Got it thanks AlexIT! Working well 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants