You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have filled out the issue template to the best of my ability.
This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
This issue is not a duplicate issue of currently previous issues..
Describe the issue
When opening configure/ fixed options for already existing PC entries, HA opens Error popup, without error detail. Just Error label
Note it doesn't pop-up for newly created entries (with most recent betas)
See log for detail.
Reproduction steps
find entry in PowerCalc main screen
Click on Configure Button
Select Fixed options from popup
error appears
...
Debug logs
2025-01-05 18:22:18.676 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 567, in _handle
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 285, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
return await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 122, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in async_configure
result = await self._async_configure(flow_id, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 410, in _async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 517, in _async_handle_step
result: _FlowResultT = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/powercalc/config_flow.py", line 1864, in async_step_fixed
return await self.async_handle_strategy_options_step(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/powercalc/config_flow.py", line 1904, in async_handle_strategy_options_step
schema = self.create_strategy_schema()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/powercalc/config_flow.py", line 633, in create_strategy_schema
if hasattr(self, f"create_schema_{self.strategy.value.lower()}"):
^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'value'
System Health details
System Information
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Checklist
Describe the issue
When opening configure/ fixed options for already existing PC entries, HA opens Error popup, without error detail. Just Error label
Note it doesn't pop-up for newly created entries (with most recent betas)
See log for detail.
Reproduction steps
...
Debug logs
Diagnostics dump or YAML config
{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2024.11.3",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.12.4",
"docker": true,
"arch": "aarch64",
"timezone": "Europe/Prague",
"os_name": "Linux",
"os_version": "6.6.31-haos-raspi",
"supervisor": "2024.12.3",
"host_os": "Home Assistant OS 13.1",
"docker_version": "26.1.4",
"chassis": "embedded",
"run_as_root": true
},
"custom_components": {
"svc2evnt": {
"documentation": "https://github.com/hernrup/homeassistant-svc2evnt",
"version": "1.1.0",
"requirements": []
},
"powercalc": {
"documentation": "https://docs.powercalc.nl",
"version": "0.1.0",
"requirements": [
"numpy>=1.21.1"
]
},
"hacs": {
"documentation": "https://hacs.xyz/docs/configuration/start",
"version": "2.0.1",
"requirements": [
"aiogithubapi>=22.10.1"
]
},
"nodered": {
"documentation": "https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/custom_integration/",
"version": "4.1.2",
"requirements": []
},
"home_connect_alt": {
"documentation": "https://github.com/ekutner/home-connect-hass",
"version": "1.1.12",
"requirements": [
"home-connect-async==0.8.0"
]
},
"browser_mod": {
"documentation": "https://github.com/thomasloven/hass-browser_mod/blob/master/README.md",
"version": "2.3.1",
"requirements": []
},
"ltss": {
"documentation": "https://github.com/freol35241/ltss",
"version": "2.1.0",
"requirements": [
"sqlalchemy>=2.0,<3.0",
"psycopg2-binary>=2.8,<3.0",
"geoalchemy2>=0.13,<1.0"
]
},
"fordpass": {
"documentation": "https://github.com/itchannel/fordpass-ha",
"version": "0.1.68",
"requirements": []
},
"dreame_vacuum": {
"documentation": "https://github.com/Tasshack/dreame-vacuum",
"version": "v2.0.0b16",
"requirements": [
"pillow",
"numpy",
"pybase64",
"requests",
"pycryptodome",
"python-miio",
"py-mini-racer",
"paho-mqtt"
]
},
"favicon": {
"documentation": "https://github.com/thomasloven/hass-favicon",
"version": "10.4",
"requirements": []
},
"cz_energy_spot_prices": {
"documentation": "https://github.com/rnovacek/homeassistant_cz_energy_spot_prices",
"version": "0.5.2",
"requirements": []
}
},
"integration_manifest": {
"domain": "powercalc",
"name": "Powercalc",
"after_dependencies": [
"integration",
"utility_meter"
],
"codeowners": [
"bramstroker"
],
"config_flow": true,
"dependencies": [
"light",
"group",
"template",
"select",
"utility_meter"
],
"documentation": "https://docs.powercalc.nl",
"iot_class": "calculated",
"issue_tracker": "https://github.com/bramstroker/homeassistant-powercalc/issues",
"requirements": [
"numpy>=1.21.1"
],
"version": "0.1.0",
"is_built_in": false,
"overwrites_built_in": false
},
"setup_times": {
"null": {
"setup": 7.642689287196845
},
"605bcd4e655ad2907c452a3619146277": {
"wait_import_platforms": -0.00019499799236655235,
"config_entry_setup": 0.052903254982084036
},
"b4e4010593c002cc29325947514dab0e": {
"config_entry_setup": 0.016003610100597143
},
"bed4752612e6ba464e27252dbd4095c2": {
"config_entry_setup": 0.015710779931396246
},
"1b456dccae9f45b8e18f1e53e2b04aeb": {
"config_entry_setup": 0.01460605300962925
},
"a35e41653576300f8e2f0bb97b1d7806": {
"config_entry_setup": 0.013408010825514793
},
"a814fb883c6bc65388deaa1a9482543c": {
"config_entry_setup": 0.01410022471100092
},
"acc89134f13856a07737a5ee9b4889a8": {
"config_entry_setup": 0.01416522404178977
},
"965fab1c986240b99f988fd615e2e126": {
"config_entry_setup": 0.02902549598366022
},
"e72318c3ae6d33276332f044688e4a05": {
"config_entry_setup": 0.020572167821228504
},
"147487d736a3301c1eec9d9982b17ac2": {
"config_entry_setup": 0.01675804564729333
},
"5f9f03b5c2198dab36964f12b9fbb767": {
"config_entry_setup": 0.014819827862083912
},
"63a49d8ab48bcaf6710752e2e3ee96f4": {
"config_entry_setup": 0.01237111585214734
},
"4568e57e2cb34efa61dccd70c748f156": {
"config_entry_setup": 0.012567612808197737
},
"54a6fa903d94d967715e51a93ef55c3e": {
"config_entry_setup": 0.015218490269035101
},
"1fdb019e59ec167b4b9ff159825e1a48": {
"config_entry_setup": 0.015426912810653448
},
"c079ebca858d28a82c05d8c7216c5604": {
"config_entry_setup": 0.011763048823922873
},
"1676b2497dd8797e953fe0b69412e906": {
"config_entry_setup": 0.019002242013812065
},
"01JDQMCWS9F5E8TPMK9H2FSRCP": {
"config_entry_setup": 0.010713913012295961
},
"01JDQMH5JQEDJEXTRJSVKWR92X": {
"config_entry_setup": 0.00934618804603815
},
"01JFMXF02DQJMDQY7N7PA3F80A": {
"config_entry_setup": 0.012188487220555544
},
"01JFMXJE6K08SF1NK8XS2DPF7G": {
"config_entry_setup": 0.009726739022880793
},
"01JFMYWJQRMQ7C3VDRHPAHEQBP": {
"config_entry_setup": 0.00823701499029994
},
"01JFMYYHZDKHV0J5WDW8ECG3PH": {
"config_entry_setup": 0.010483711026608944
},
"01JG423P1H87ACBT3KXC78D8XX": {
"config_entry_setup": 0.0097802197560668
},
"01JGRGJN5C6NYVSHD49NQ7CEMY": {
"config_entry_setup": 0.008518011774867773
},
"01JGRSG1M3FK08B66GTDRQ823K": {
"config_entry_setup": 0.010426138062030077
},
"01JGRSG9436HM4W2AFABM5K2AE": {
"config_entry_setup": 0.011452328879386187
},
"01JGTYEYFZVZJ870GTHVC2DRGE": {
"config_entry_setup": 0.007416487671434879
},
"01JGV41TSAVS95Q1WJ26RMF5DF": {
"config_entry_setup": 0.004964035004377365
},
"01JGV4288GJ9KNC3QDNJHY37HJ": {
"config_entry_setup": 0.005959133617579937
},
"01JGV4AJYW9DZ8MZDVF2B0D1R8": {
"config_entry_setup": 0.00487516587600112
},
"01JGV4APA51VAV5ER17EDG5Q01": {
"config_entry_setup": 0.005577100906521082
},
"d0f3e9e573f68ae59baee7ec1da350cb": {
"config_entry_setup": 1.2949035270139575
},
"01JGVKEYG97FV7E1YR8QDK4DHW": {
"config_entry_setup": 0.320037888828665
},
"01JGVKFFV558W297PXCVJ97KBP": {
"config_entry_setup": 0.403264791239053
},
"0a19a52c0754538d011bccd8c455e9ee": {
"config_entry_setup": 1.4131601518020034
},
"35bdf69856debfc96015950eb7eb7f49": {
"config_entry_setup": 1.3430300983600318
},
"0216241b3463943089afec03c0421738": {
"config_entry_setup": 1.2266444158740342
},
"0ba068d96b5c74b7d22d545e8b46026e": {
"config_entry_setup": 1.1061987620778382
},
"cd144fe294bdd416b41738829106cd41": {
"config_entry_setup": 1.018807518761605
},
"e041ebf7fef0c03bc038c45cdc9bb2cb": {
"config_entry_setup": 0.9872581833042204
},
"66dd69d410d05cc07733544d4f860ffb": {
"config_entry_setup": 0.9288531029596925
},
"42cca1d1bf2b4e2d25d7116ff9d51c18": {
"config_entry_setup": 0.9221769399009645
},
"6a3079d95dbd0a2679973a46306a5c24": {
"config_entry_setup": 0.9179560439661145
},
"9fedbf9f34dd72487a80829d227eeb63": {
"config_entry_setup": 0.8296632571145892
},
"a4ae8af158ed8772dfee459535fec75f": {
"config_entry_setup": 0.8181013539433479
},
"e3742a1b16a9ca45bdfe38d1fa3035b5": {
"config_entry_setup": 0.6955177430063486
},
"01JDS736D3DDFC4RJXXZZ6PQWD": {
"config_entry_setup": 0.5751501428894699
},
"01JGQE5TA2P0JCNZEJWYD6KD6X": {
"config_entry_setup": 0.503093371167779
},
"01JGQDQMB4GNN9GB0SXVXXDFXC": {
"config_entry_setup": 0.550985146779567
},
"01JGQDRAD1V9XGJ1MPBTT1HCZ2": {
"config_entry_setup": 0.5583289316855371
},
"01JGQC8SMNJQNB8AV53EEHMN3C": {
"config_entry_setup": 0.5673279212787747
},
"01JGVMGHDT18WEK9BSR143WTWE": {
"config_entry_setup": 0.46679986687377095
},
"01JGVM6ZHBG7EBNXXNGV7MP3YK": {
"config_entry_setup": 0.4771447838284075
},
"01JGVKGT2S8PFVHTKRP2N422KJ": {
"config_entry_setup": 0.4795985519886017
},
"01JGVKG17Y3QPV5X6VVGNTBSMW": {
"config_entry_setup": 0.4950142060406506
},
"01JGVKFWSHKFR9R1QFSNF4Q31F": {
"config_entry_setup": 0.49795417208224535
},
"01JGVKFRDHYQ83P47YXH4X5887": {
"config_entry_setup": 0.5017914790660143
},
"0d23c361645d6af19e18b4e065c6a442": {
"config_entry_setup": 1.491137226112187
},
"c6974859551c50e978a09e52bbd698db": {
"config_entry_setup": 1.3913119998760521
}
},
"data": {
"entry": {
"created_at": "2024-12-21T15:56:33.133409+00:00",
"data": {
"_energy_entity": "sensor.net_lights_energy",
"_power_entity": "sensor.net_lights_power",
"create_energy_sensor": true,
"create_utility_meters": false,
"energy_integration_method": "left",
"energy_sensor_unit_prefix": "k",
"entity_id": "light.net_lights",
"fixed": {
"power": 25.0
},
"group": "01JDS736D3DDFC4RJXXZZ6PQWD",
"ignore_unavailable_state": false,
"mode": "fixed",
"name": "Net Lights",
"sensor_type": "virtual_power",
"standby_power": 0.0
},
"discovery_keys": {},
"disabled_by": null,
"domain": "powercalc",
"entry_id": "01JFMYYHZDKHV0J5WDW8ECG3PH",
"minor_version": 1,
"modified_at": "2024-12-21T15:56:33.138388+00:00",
"options": {},
"pref_disable_new_entities": false,
"pref_disable_polling": false,
"source": "user",
"title": "Net Lights",
"unique_id": "363a6a5b-960e-4f70-bc31-b95758d01846",
"version": 4
}
}
}
The text was updated successfully, but these errors were encountered: