diff --git a/README.md b/README.md index 1d3e0fe..de17e22 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,13 @@ **NOTE: This is integration has some known bugs in it and is in an alpha state. It is also a bit stale in development due to lack of mainatiner time. Feel free to fork or help pushing PRs improving this integration.** + +this fork changes line 69 from +`PassiveBluetoothProcessorEntity[PassiveBluetoothDataProcessor[str | int | None]],` to +`PassiveBluetoothProcessorEntity[PassiveBluetoothDataProcessor[str | int | None,1]],` + +This fixes issue and scooter pulls data but fails to continuously pull info from scooter with `error Failure while polling. TimeoutError: Did not get a response on Packet[PC -> ES_BLE, cmd=INIT, idx=00]` + It connects and poll data from a Ninebot Scooter using BLE. ## Manual installation diff --git a/custom_components/ninebot_scooter/manifest.json b/custom_components/ninebot_scooter/manifest.json index 0f156e9..aaaa1a3 100644 --- a/custom_components/ninebot_scooter/manifest.json +++ b/custom_components/ninebot_scooter/manifest.json @@ -21,4 +21,4 @@ "ninebot-ble==0.0.5" ], "version": "0.0.1" -} \ No newline at end of file +} diff --git a/custom_components/ninebot_scooter/sensor.py b/custom_components/ninebot_scooter/sensor.py index 88eb7eb..9c47ddc 100644 --- a/custom_components/ninebot_scooter/sensor.py +++ b/custom_components/ninebot_scooter/sensor.py @@ -66,7 +66,7 @@ async def async_setup_entry( class NinebotBluetoothSensorEntity( - PassiveBluetoothProcessorEntity[PassiveBluetoothDataProcessor[str | int | None]], + PassiveBluetoothProcessorEntity[PassiveBluetoothDataProcessor[str | int | None,1]], SensorEntity, ): """Representation of a Ninebot sensor."""